Swiftpack.co - super-ultra/UltraDrawerView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by super-ultra.
super-ultra/UltraDrawerView 0.7.1
🐝 Super ultra drawer view
⭐️ 222
🕓 2 years ago
iOS
.package(url: "https://github.com/super-ultra/UltraDrawerView.git", from: "0.7.1")

UltraDrawerView

let headerView = HeaderView()
headerView.translatesAutoresizingMaskIntoConstraints = false
headerView.heightAnchor.constraint(equalToConstant: 64).isActive = true

let tableView = UITableView()

let drawerView = DrawerView(scrollView: tableView, headerView: headerView)
drawerView.availableStates = [.top, .middle, .bottom]
drawerView.middlePosition = .fromBottom(256)
drawerView.cornerRadius = 16
drawerView.containerView.backgroundColor = .white
drawerView.setState(.middle, animated: false)

// More fluctuations 
drawerView.animationParameters = .spring(mass: 1, stiffness: 200, dampingRatio: 0.5)

// Default UIScrollView like behavior
drawerView.animationParameters = .spring(.default)

Example

Example

To run the example project, clone the repo and run bundle exec pod install from the Example directory first.

Installation

UltraDrawerView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'UltraDrawerView'

Author

Ilya Lobanov

License

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

GitHub

link
Stars: 222
Last commit: 34 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.7.1
2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics