• Stars
    star
    28
  • Rank 852,300 (Top 18 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 1 year ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“‘ GoodExtensions is a collection of useful and frequently used Swift extensions for iOS development, designed to simplify and streamline common tasks.It helps developers write clean and concise code, saving time and effort while boosting productivity. Get access to a wealth of essential tools for iOS development in one convenient library.

GoodExtensions-iOS

iOS Version Swift Version Supported devices Contains Test Dependency Manager

Good Extensions is a collection of useful and frequently used Swift 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/GoodExtensions-iOS" from: "addVersion")
    ]
)

Usage

Then

Then is a useful way to set properties with closures just after initializing.

let myLabel = UILabel().then {
    $0.textAlignment = .center
    $0.textColor = .black
    $0.text = "Hello, World!"
}

Foundation Extensions

Use our extensions with .gr just like this:

guard myArray.gr.contains(index: 7) else { return }

myarray.gr.hasItems

myArray.gr.removedDuplicates()

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

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

More Repositories

1

GoodReactor

βš›οΈ GoodReactor is a Redux-inspired Reactor framework for iOS developed using Swift. It enables seamless communication between the View Model, View Controller, and Coordinator through state and navigation functions. It ensures no side-effects by interacting with dependencies outside of the Reduce function. Integrate it with using SPM!
Swift
32
star
2

GoodPersistence

πŸ’Ύ GoodPersistence is an iOS library that simplifies caching data in keychain and UserDefaults. Using a property wrapper, it reduces the complexity of implementing caching mechanisms, making it easier for developers to focus on app functionality. Compatible with latest Swift and supports all iOS devices. Easy to install with SPM.
Swift
32
star
3

GoodNetworking

πŸ“‘ GoodNetworking is an iOS library written in Swift that simplifies HTTP networking by using GRSession and Encodable/DataRequest extensions. It supports latest Swift and all iOS devices, making it a powerful solution for managing network interactions and data encoding/decoding. The library is easy to install with SPM.
Swift
31
star
4

Temple

πŸ—‚οΈ This repository provides a guide to creating Xcode templates for iOS boilerplate code to save time and increase creativity in development. It simplifies the process and helps new team members get up to speed. A solution to Xcode's poorly documented templates.
Swift
31
star
5

GoodUIKit

πŸ“‘ 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.
Swift
30
star
6

GRProvider

πŸš€UITableView and UICollectionView provider to simplify basic scenarios of showing the data.
Swift
27
star
7

GoodIOSExtensions

🧾 GoodIOSExtensions is a collection of modules extending different aspects of your swift xcode project
Swift
19
star
8

express-joi-to-swagger

Simple tool for generating swagger API documentation from source code.
TypeScript
19
star
9

GoodSwiftUI

πŸ“‘ GoodSwiftUI is a comprehensive library filled with reusable SwiftUI snippets for faster and more efficient iOS development. This library offers a wide range of customizable UI components, designed to boost your productivity and streamline your development workflow. Save time and effort by leveraging pre-made, tested, and ready-to-use code.
Swift
17
star
10

AppDebugMode-iOS

πŸ› App Debug Mode 🐞 for iOS. Allows special debug privileges.
Swift
16
star
11

GoodSwift

Some good swift extensions, handfully crafted by GoodRequest team.
Swift
9
star
12

spongly-dapp-public

TypeScript
3
star
13

GoodPagerIndicator

Kotlin
2
star
14

spongly-contracts

πŸͺΈ Smart contracts for spongly protocol
TypeScript
2
star
15

BackupBuddy

Simple Bash app for backing up your database or filesystem data.
Shell
2
star
16

GoodCoordinator-iOS

🧭 Simplified programmatic navigation in SwiftUI
Swift
2
star
17

Safe

Safe enables sharing confidential information with a limited number of views and overall lifetime.
HTML
2
star
18

test-coverage-push-script

JavaScript
1
star
19

Zoom

Kotlin optics library for immutable data manipulation
Kotlin
1
star
20

internship_ios

HTML
1
star
21

joi-type-extract

Extract type from Joi schema
1
star
22

joi-messages-extractor

Script for extracting joi messages. Useful for translations.
TypeScript
1
star
23

BackendAssignment-Fitness

TypeScript
1
star