github "tattn/PullableSheet"
pod 'PullableSheet'
import PullableSheet
// ....
override func viewDidLoad() {
super.viewDidLoad()
let content = UIViewController() // your view controller
content.view.backgroundColor = .clear
let sheet = PullableSheet(content: content)
sheet.snapPoints = [.min, .custom(y: 300), .max] // snap points (if needed)
sheet.add(to: self)
}
let topBar = UIView(frame: .init(x: 0, y: 5, width: 300, height: 30))
topBar.backgroundColor = .green
let sheet = PullableSheet(content: content, topBarStyle: .custom(topBar))
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
PullableSheet is released under the MIT license. See LICENSE for details.