A Swift library that provides a collection of convenient extension methods for UIKit components, designed to improve code readability and reduce boilerplate. WithKit is available via CocoaPods and Swift Package Manager (SPM) and supports iOS 11 and above.
To add WithKit to your project using SPM, add the following line to your Package.swift file:
dependencies: [
.package(url: "https://github.com/shles/WithKit.git", .upToNextMajor(from: "1.0.0"))
]
And then add WithKit to your target dependencies:
.target(name: "YourApp", dependencies: ["WithKit"])
WithKit is available through CocoaPods as well. To install it, simply add the following line to your Podfile:
pod 'WithKit'
Import the library in the file where you want to use it:
import WithKit
Then, you can start using the provided extension methods. For example:
let label = UILabel()
.with(text: "Hello, World!")
.with(textAlignment: .center)
.with(textColor: .red)
We welcome contributions! If you find a bug or have a feature request, please open an issue on GitHub. If you'd like to contribute code, please fork the repository and create a pull request.
Artemis Shlesberg, temitrix@gmail.com
WithKit is available under the MIT license. See the LICENSE file for more info.