Presents a popover when a given condition is true.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func popover<Content>(isPresented: Binding<Bool>, attachmentAnchor: Popover Attachment Anchor = .rect(.bounds), arrowEdge: Edge = .top, @View Builder content: @escaping () -> Content) -> some View where Content : View