let headerView = HeaderView()
headerView.translatesAutoresizingMaskIntoConstraints = false
headerView.heightAnchor.constraint(equalToConstant: 64).isActive = true
let tableView = UITableView()
let drawerView = DrawerView(scrollView: tableView, delegate: self, headerView: headerView)
drawerView.availableStates = [.top, .middle, .bottom]
drawerView.middlePosition = .fromBottom(256)
drawerView.cornerRadius = 16
drawerView.containerView.backgroundColor = .white
drawerView.setState(.middle, animated: false)
To run the example project, clone the repo and run pod install
from the Example directory first.
UltraDrawerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'UltraDrawerView'
Ilya Lobanov
UltraDrawerView is available under the MIT license. See the LICENSE file for more info.