Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```