- Go to main.storyboard and add a blank UIBUtton
- Open the Identity Inspector and type 'IconButton' the 'class' field
- Make sure you have 'IconButton' selected in 'Module' field
- Switch to the Attributes Inspector and configure it as you like.
A small example of a normal iOS button and what you can do with the library.
var clickAlphaComponent: CGFloat
var title: String?
var titleColor: UIColor?
var image: UIImage?
var imageTintColor: UIColor?
var isCircle: Bool
var cornerRadius: CGFloat
var borderWidth: CGFloat
var borderColor: UIColor
var shadowRadius: CGFloat
var shadowOpacity: CGFloat
var shadowOffSet: CGFloat
var shadowColor: UIColor
- Xcode 9.0 or newer
- Swift 4.0
use_frameworks!
pod 'IconButton'
Luigi Aiello, [email protected]
IconButton is available under the MIT license. See the LICENSE file for more info.