Tokamak
Tokamak copied to clipboard
Add support for `ActionSheet`
Basic API:
public struct ActionSheet {
public init(title: Text, message: Text? = nil, buttons: [ActionSheet.Button] = [.cancel()])
public typealias Button = Alert.Button
}
extension View {
public func actionSheet<T>(
item: Binding<T?>,
content: (T) -> ActionSheet
) -> some View where T : Identifiable
public func actionSheet(
isPresented: Binding<Bool>,
content: () -> ActionSheet
) -> some View
}