Fast to show a sheetView
let bottomView = BottomSheetView.init(frame: self.view.frame, superview: self.view)
Set SheetView childView
- prepare a view controller
- use the setChildView func
tableViewController = self.storyboard?.instantiateViewController(withIdentifier: "TableViewController") as? TableViewController
bottomView.setChildView(view: tableViewController?.view ?? UIView())
swift 4.2 Xcode 10.0
Using CocoaPods.
Add the following line to your Podfile:
pod 'LEBottomSheetView'
a841223o, [email protected]
LEBottomSheetView is available under the MIT license. See the LICENSE file for more info.