Swiftpack.co - GoodRequest/GoodUIKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by GoodRequest.
GoodRequest/GoodUIKit 1.0.4
📑 GoodUIKit is a UIKit extensions library filled with reusable UI snippets for faster and more efficient iOS development. Boost productivity and streamline your workflow with ready-to-use UI components.
⭐️ 30
🕓 4 weeks ago
iOS
.package(url: "https://github.com/GoodRequest/GoodUIKit.git", from: "1.0.4")

GoodUIKit

iOS Version Swift Version Supported devices Contains Test Dependency Manager

Good UIKit is a collection of useful and frequently used Swift UIKit extensions for iOS development. These extensions aim to simplify and streamline common tasks, making it easier for developers to write clean and concise code.

Instalation

Swift Package Manager

Create a Package.swift file and add the package dependency into the dependencies list. Or to integrate without package.swift add it through the Xcode add package interface.


import PackageDescription

let package = Package(
    name: "SampleProject",
    dependencies: [
        .Package(url: "https://github.com/GoodRequest/GoodUIKit" from: "addVersion")
    ]
)

Usage

Use our extensions with .gr just like this:

myCollectionView.gr.registerCell(fromClass: MyCollectionViewCell.self)

myTableView.gr.registerHeaderFooterView(fromClass: MyTableViewHeader.self)

UIKit Combine

You can define Publisher for your button or other user interactive elements


private(set) lazy var buttonPublisher = myButton.gr.publisher(for: .touchUpInside)

then subcribe to it and handle the actions whenever user interacts with the element


buttonPublisher
    .sink { [weak self] _ in
        // do actions
    }
    .store(in: &cancellables)
    

License

GoodUIKit is released under the MIT license. See LICENSE for details.

GitHub

link
Stars: 30
Last commit: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.0.4
4 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/GoodRequest/GoodUIKit/compare/1.0.3...1.0.4

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics