ProductivityKit 1.1.3

ProductivityKit 1.1.3

Maintained by Zaim Ramlan.



ProductivityKit build-travis

pod-version pod-platform A repository with nifty Swift extensions to make you more productive! (This repository will have on-going updates. More extensions coming soon!)

Requirements

  • Swift 4.2
  • iOS 10 or later

Installation

Cocoapods

You may opt to install all or only some extensions. Refer to the Available Extensions section to see what extensions are available.

Add one of the following to your Podfile:

# Add this to install all extensions
pod 'ProductivityKit'

# Or, add this to install all UIView extensions
pod 'ProductivityKit/UIView'

# Or, add this to install only the UIView styling extensions
pod 'ProductivityKit/UIView/Styling'

Usage

Simply import the ProductivityKit and you can straight away use the extensions installed.

import ProductivityKit

class MyController: UIViewController {
    ...
    override func viewDidLoad() {
        super.viewDidLoad()
        let view = UIView()
        view.setupBorder(colour: UIColor.black, width: 0.5)
    }
    ...
}

Available Extensions

Head over to the folders listed to see more details of the extensions for a particular Swift core class.

  1. Date
    • Utility
  2. String
    • Formatting
  3. NSMutableAttributedString
    • Interpolations
  4. UIColor
    • RGBA
  5. UIView
    • Styling

Or view the source code docs to dive deeper.

License

See LICENSE file for details