DrawerViewOption

public struct DrawerViewOption

Contains the settings used to create a Drawer View Button inside of the drawer view, when the overlay is swiped the drawer view is revealed and is populated based on the values contained here

  • Set UIAttributes for DrawerView, establish gesture recognizers, and add the user defined overlay to the drawer.

    Declaration

    Swift

    public init(labelText: String, actionText: String, icon: UIImage, action: @escaping DrawerViewClosureType)

    Parameters

    labelText

    String value that is passed into the closure as part of the IBAction

    actionText

    String value that is passed into the closure as part of the IBAction

    icon

    UIImage used by the UIButton.

    action

    ((String) -> Bool) closure executed on IBAction