IconButton 0.2.0

IconButton 0.2.0

Maintained by Luigi Aiello.



  • By
  • Luigi Aiello

IconButton

CI Status Version License Platform

Getting Started

Storyboard

  • 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.

CardViewStoryboard

Example

A small example of a normal iOS button and what you can do with the library.

Classic
Custom

Customization

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

Prerequisites

  • Xcode 9.0 or newer
  • Swift 4.0

Installation

Cocoapods

use_frameworks!
pod 'IconButton'

Author

Luigi Aiello, [email protected]

License

IconButton is available under the MIT license. See the LICENSE file for more info.