https://github.com/dragoncherry/dimmer
An easy extension library that support dimming functionality.
https://github.com/dragoncherry/dimmer
dim dimmer dimming swift view
Last synced: 11 months ago
JSON representation
An easy extension library that support dimming functionality.
- Host: GitHub
- URL: https://github.com/dragoncherry/dimmer
- Owner: DragonCherry
- License: mit
- Created: 2017-05-12T01:58:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T10:08:26.000Z (over 7 years ago)
- Last Synced: 2025-07-02T04:37:35.582Z (12 months ago)
- Topics: dim, dimmer, dimming, swift, view
- Language: Swift
- Size: 39.1 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dimmer
An easy extension library that supports dimming functionality on UIView and UIViewController.
# Example
```
To dim view,
view.dim() / view.undim()
To dim a view with filling direction and size,
view.dim(.fromTop, ratio: 0.5)
To show loading view,
view.showLoading() / view.hideLoading()
To show loading view with indicator style,
view.showLoading(style: .whiteLarge) / view.hideLoading()
```
# Installation
Dimmer is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "Dimmer"
```