Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/super-ultra/UltraDrawerView
🐝 Super ultra drawer view
https://github.com/super-ultra/UltraDrawerView
Last synced: 3 months ago
JSON representation
🐝 Super ultra drawer view
- Host: GitHub
- URL: https://github.com/super-ultra/UltraDrawerView
- Owner: super-ultra
- License: mit
- Created: 2019-01-22T21:02:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T09:45:44.000Z (3 months ago)
- Last Synced: 2024-10-29T11:48:34.820Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 7 MB
- Stars: 234
- Watchers: 4
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-swift - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- awesome-swift - UltraDrawerView - Super ultra drawer view ` 📝 13 days ago ` (UI [🔝](#readme))
- awesome-swift - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- awesome - UltraDrawerView - 🐝 Super ultra drawer view. (iOS / FloatingPanel)
- awesome - UltraDrawerView - 🐝 Super ultra drawer view. (iOS / FloatingPanel)
README
# UltraDrawerView
```swift
let headerView = HeaderView()
headerView.translatesAutoresizingMaskIntoConstraints = false
headerView.heightAnchor.constraint(equalToConstant: 64).isActive = truelet 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](Example/example.gif)
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](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'UltraDrawerView'
```## Author
Ilya Lobanov
## License
UltraDrawerView is available under the MIT license. See the LICENSE file for more info.