Presents an action sheet when a given condition is true.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.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