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

https://github.com/smakeev/pulsingbutton

UIButton subclass with pulsing effect. Also a pulsing layer which could be used in any view
https://github.com/smakeev/pulsingbutton

animation ios pulsing swift uibutton

Last synced: 11 months ago
JSON representation

UIButton subclass with pulsing effect. Also a pulsing layer which could be used in any view

Awesome Lists containing this project

README

          

# PulsingButton
![Farmers Market Finder Demo](demo/demo.gif)

# How to use
```
pod "PulsingButton"
```

```swift
let button = PulsingButton()
button.translatesAutoresizingMaskIntoConstraints = false

self.view.addSubview(button)
button.pulsingColor = .orange
button.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
button.centerYAnchor.constraint(equalTo: self.view.centerYAnchor).isActive = true

button.setTitle(" Press Me To See Pulsing ", for: .normal)
button.layer.cornerRadius = 25
button.backgroundColor = .orange
}
```