Tokamak icon indicating copy to clipboard operation
Tokamak copied to clipboard

Add support for `ActionSheet`

Open MaxDesiatov opened this issue 3 years ago • 0 comments

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
}

MaxDesiatov avatar Dec 04 '20 16:12 MaxDesiatov