Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smakeev/shimmerlabel
UILabel with shimmer animation effect
https://github.com/smakeev/shimmerlabel
animation ios shimmer swift uilabel
Last synced: about 5 hours ago
JSON representation
UILabel with shimmer animation effect
- Host: GitHub
- URL: https://github.com/smakeev/shimmerlabel
- Owner: smakeev
- License: mit
- Created: 2020-03-22T11:36:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-22T13:28:31.000Z (over 4 years ago)
- Last Synced: 2024-10-11T23:48:35.798Z (about 1 month ago)
- Topics: animation, ios, shimmer, swift, uilabel
- Language: Swift
- Size: 810 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ShimmerLabel
![Farmers Market Finder Demo](demo/demo.gif)
```swift
let label = ShimmerLabel()
label.text = " Text From Code"
label.font = UIFont.boldSystemFont(ofSize: 18)
label.translatesAutoresizingMaskIntoConstraints = false
label.shimmerColor = .red
self.view.addSubview(label)
label.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
label.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
label.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
label.bottomAnchor.constraint(equalTo: self.view.bottomAnchor, constant: -40).isActive = true
```