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!
- Host: GitHub
- URL: https://github.com/pakej/productivitykit
- Owner: pakej
- License: apache-2.0
- Created: 2018-10-27T22:26:55.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2019-12-13T14:07:10.000Z (about 6 years ago)
- Last Synced: 2025-02-18T22:46:02.007Z (about 1 year ago)
- Topics: extensions, foundation, nsmutableattributedstring, pod, productive, swift, uikit, uiview
- Language: Swift
- Size: 392 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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