mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Restored files from old Mac, force pushing
This commit is contained in:
parent
5dd95228b8
commit
5040381840
126 changed files with 10431 additions and 67 deletions
28
DynamicIsland/components/Settings/ListItemPopover.swift
Normal file
28
DynamicIsland/components/Settings/ListItemPopover.swift
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// ListItemPopover.swift
|
||||
// boringNotch
|
||||
//
|
||||
// Created by Richard Kunkli on 15/09/2024.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct ListItemPopover<Content: View>: View {
|
||||
let content: () -> Content
|
||||
|
||||
@State private var isPresented: Bool = false
|
||||
var body: some View {
|
||||
Button {
|
||||
isPresented.toggle()
|
||||
} label: {
|
||||
Image(systemName: "info.circle")
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.controlSize(.regular)
|
||||
.popover(isPresented: $isPresented, attachmentAnchor: .rect(.bounds), arrowEdge: .trailing, content: {
|
||||
content()
|
||||
.padding()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue