Presents an action sheet when a given condition is true.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func actionSheet(isPresented: Binding<Bool>, content: () -> Action Sheet) -> some View
Presents an action sheet when a given condition is true.
SDKs
Framework
func actionSheet(isPresented: Binding<Bool>, content: () -> Action Sheet) -> some View
func sheet<Content>(is Presented: Binding<Bool>, on Dismiss: (() -> Void)?, content: () -> Content) -> View
Presents a sheet when a given condition is true.
func sheet<Item, Content>(item: Binding<Item?>, on Dismiss: (() -> Void)?, content: (Item) -> Content) -> View
Presents a sheet using the given item as a data source for the sheet’s content.
func action Sheet<T>(item: Binding<T?>, content: (T) -> Action Sheet) -> View
Presents an action sheet using the given item as a data source for the sheet’s content.
func alert(is Presented: Binding<Bool>, content: () -> Alert) -> View
Presents an alert to the user.
func alert<Item>(item: Binding<Item?>, content: (Item) -> Alert) -> View
Presents an alert to the user.
func popover<Content>(is Presented: Binding<Bool>, attachment Anchor: Popover Attachment Anchor, arrow Edge: Edge, content: () -> Content) -> View
Presents a popover when a given condition is true.
func popover<Item, Content>(item: Binding<Item?>, attachment Anchor: Popover Attachment Anchor, arrow Edge: Edge, content: (Item) -> Content) -> View
Presents a popover using the given item as a data source for the popover’s content.