BottomSheetViewController

open class BottomSheetViewController : ModalViewController

BottomSheetViewController is used to present a view controller from the bottom.

Author

Adamas

Version

1.9.7

Date

15/09/2022
  • Create the bottom sheet view controller for a specified controller

    Declaration

    Swift

    public init(viewController: UIViewController, mode: BottomSheetMode)

    Parameters

    viewController

    The actual view controller to present

    mode

    The presenting mode

  • Undocumented

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    open override func viewDidLoad()
  • Undocumented

    Declaration

    Swift

    open override func viewWillAppear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    open override func viewDidAppear(_ animated: Bool)
  • Show the bottom sheet.

    Declaration

    Swift

    public func showModal(completion: (() -> Void)? = nil)

    Parameters

    completion

    Comletion handler for showing the bottom sheet.

  • Hide the bottom sheet.

    Declaration

    Swift

    public func hideModal(completion: (() -> Void)? = nil)

    Parameters

    completion

    Comletion handler for hiding the bottom sheet.

  • Undocumented

    Declaration

    Swift

    open override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil)