BottomSheetViewController
open class BottomSheetViewController : ModalViewController
BottomSheetViewController is used to present a view controller from the bottom.
Version
1.9.7Date
15/09/2022-
Create the bottom sheet view controller for a specified controller
Declaration
Swift
public init(viewController: UIViewController, mode: BottomSheetMode)Parameters
viewControllerThe actual view controller to present
modeThe 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
completionComletion handler for showing the bottom sheet.
-
Hide the bottom sheet.
Declaration
Swift
public func hideModal(completion: (() -> Void)? = nil)Parameters
completionComletion handler for hiding the bottom sheet.
-
Undocumented
Declaration
Swift
open override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil)
BottomSheetViewController Class Reference