An open API service indexing awesome lists of open source software.

https://github.com/pakej/productivitykit

A repository with nifty Swift extensions to make you more productive!
https://github.com/pakej/productivitykit

extensions foundation nsmutableattributedstring pod productive swift uikit uiview

Last synced: about 1 year ago
JSON representation

A repository with nifty Swift extensions to make you more productive!

Awesome Lists containing this project

README

          

# ProductivityKit ![build-travis](https://img.shields.io/travis/com/lambdable/ProductivityKit)
![pod-version](https://img.shields.io/cocoapods/v/ProductivityKit) ![pod-platform](https://img.shields.io/cocoapods/p/ProductivityKit)
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](#available-extensions) section to see what extensions are available.

Add **one** of the following to your `Podfile`:
```ruby
# 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.
```Swift
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](ProductivityKit/Date)
- `Utility`
1. [String](ProductivityKit/String)
- `Formatting`
1. [NSMutableAttributedString](ProductivityKit/NSMutableAttributedString)
- `Interpolations`
1. [UIColor](ProductivityKit/UIColor)
- `RGBA`
1. [UIView](ProductivityKit/UIView)
- `Styling`

Or view the [source code docs](https://pakej.github.io/ProductivityKit) to dive deeper.

## License
See LICENSE file for details