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: about 2 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-24T12:52:26.000Z (10 months ago)
- Last Synced: 2024-04-22T00:18:12.423Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 6.98 MB
- Stars: 222
- Watchers: 4
- Forks: 34
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-swift - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- awesome-swifty - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- awesome-swift4 - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- awesome-swiftxx - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- fucking-awesome-swift - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- awesome-swiftqq - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- awesome-swifte - UltraDrawerView - Lightweight, fast and customizable Drawer View implementation identical to Apple Maps, Stocks and etc. (Libs / UI)
- 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))
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.