SwiftToolKit 0.2.4

SwiftToolKit 0.2.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2015
SPMSupports SPM

Maintained by Logan Shire.



  • By
  • Logan Shire

SwiftToolKit

This library contains a collection of utility functions and extensions to help make code cleaner and more readable.

TypeTools contains a function to produce a hashable key from a type.

UIButtonExtensions contains an extension to UIButton which adds a cornerRadius property which is configurable and designable through interface builder.

UIColorExtensions contains an extension to UIColor which adds convenience initializers for RGB integer components and RGB hex values.

UIImageViewExtensions contains an extension to UIImageView which adds an imageURL property. When set, this fetches the image asynchronously and sets it as the imageView’s image propety.

UIViewAutolayoutExtensions contains utility functions and an extension to UIView which simplify writing AutoLayout constraints.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 8.3 or Greater

Installation

ToolKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SwiftToolKit"

Author

Logan Shire, [email protected]

License

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