AJBottomSheet 1.0.2

AJBottomSheet 1.0.2

Maintained by Alvin John Tandoc.



  • By
  • alvinjohntandoc

AJBottomSheet

CI Status Version License Platform

AJBottomSheet is a view that slides up from the bottom of the screen.Bottom sheets are displayed as a result of the user-triggered action. To run the example project, clone the repo, and run pod install from the Example directory first.

1) Install via cocoapods.

pod 'AJBottomSheet'

2) Import AJBottomSheet

import AJBottomSheet

2) Call AJBottomSheet

//Initialize view controller to be presented as bottom sheet
let vc: ListViewController = self.storyboard?.instantiateViewController(withIdentifier: "ListViewController") as! ListViewController

//Pass the view controller and set the height of the bottom sheet
AJBottomSheetViewController.show(viewController: vc, height: 130, parent: self)

TODO:

  • Add Swipe to dismiss
  • Add Swipe to view full page

Author

License

AJBottomSheet is available under the MIT license. See the LICENSE file for more info.