https://github.com/vamshiiitbhu14/flatpressbutton
Flat design clickable buttons. All code written in latest Swift4 syntax.
https://github.com/vamshiiitbhu14/flatpressbutton
flatcolors uibutton uicolor uikit
Last synced: about 1 year ago
JSON representation
Flat design clickable buttons. All code written in latest Swift4 syntax.
- Host: GitHub
- URL: https://github.com/vamshiiitbhu14/flatpressbutton
- Owner: VamshiIITBHU14
- Created: 2017-11-17T07:12:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T07:30:19.000Z (over 8 years ago)
- Last Synced: 2025-04-04T05:21:43.556Z (about 1 year ago)
- Topics: flatcolors, uibutton, uicolor, uikit
- Language: Swift
- Homepage:
- Size: 20.5 KB
- Stars: 19
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FlatPressButton
Flat design clickable buttons. All code written in latest Swift4 syntax.
Concept taken from https://famolus.com with code written in Swift4.
Easy to use. Just drag and drop HTPressableButton.Swift, UIColor+HTColor.Swift, UIImage+HTButton.Swift, you are done.
You can add buttons with different styles (Rounded edges, Rectanular edges, Circular button) with
var frame = CGRect(x: 30, y: 150, width: 260, height: 50)
let rectButton = HTPressableButton(frame: frame, buttonStyle: HTPressableButtonStyle.rect)
rectButton.buttonColor = UIColor.ht_alizarinColor()
rectButton.shadowColor = UIColor.ht_pumpkinColor()
rectButton.setTitle("Rect", for: .normal)
view.addSubview(rectButton)