ActionSheetItem
public struct ActionSheetItem
ActionSheetItem is used to present an action.
Version
1.6.0Date
24/09/2019-
Create an action item.
Declaration
Swift
public init(title: String, icon: UIImage? = nil, action: @escaping () -> Void)Parameters
titleThe title.
iconThe icon. Nil by default.
actionThe action.
-
Create a cancellation or destruction item.
Declaration
Swift
public init(title: String, style: UIAlertAction.Style)Parameters
titleThe title.
styleThe style.
-
Create an item using a view controller. Better to keep the background of the view controller to be clear.
Declaration
Swift
public init(viewController: UIViewController)Parameters
viewControllerThe view controller.
ActionSheetItem Structure Reference