Skip to content
/ WithKit Public

Swift framework for easy UI elements configuration

License

Notifications You must be signed in to change notification settings

shles/WithKit

Repository files navigation

WithKit

Version License Platform Platform

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.

Requirements

Installation

Swift Package Manager (SPM)

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"])

Cocoapods

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

pod 'WithKit'

Usage

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)

Contributing

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.

Author

Artemis Shlesberg, temitrix@gmail.com

License

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