ActionSheet

@available(macOS, unavailable)
public struct ActionSheet

Type that represents a system action sheet. Use it to customize the texts and actions that will be shown in the action sheet.

  • Creates an action sheet with the provided buttons.

    Send nil in the title to hide the title space in the action sheet. This behavior is not compatible with SwiftUI.

    Declaration

    Swift

    public init(title: Text? = nil, message: Text? = nil, buttons: [ActionSheet.Button])
  • A button representing an operation of an action sheet presentation.

    Declaration

    Swift

    public typealias Button = Alert.Button