Librairie publique des extensions fréquemment utilisées en Swift.

Related tags

Utility SwiftLib
Overview

SwiftLib

Statut du projet 🚧

Ce projet est actuellement en cours de construction.

Toute contribution est la bienvenue !

Description 📖

Contient les extensions Swift couramment utilisées chez Niji.

Installation ⚙️

Swift Package Manager

Vous pouvez utiliser Swift Package Manager pour installer SwiftLib en ajoutant la description suivante à votre fichier Package.swift :

import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    targets: [],
    dependencies: [
        .package(url: "https://github.com/NijiDigital/SwiftLib", from: "1.0.0")
    ]
)

Ensuite, ajoutez SwiftLib à vos targets dependencies :

.target(
    name: "YOUR_TARGET_NAME",
    dependencies: [
        "SwiftLib",
    ]
),

Puis lancez la commande swift package update.

CocoaPods

Pour intégrer SwiftLib à votre projet Xcode en utilisant CocoaPods, renseignez le dans votre Podfile :

pod 'SwiftLib'

Puis lancez la commande pod install.

Manuellement

Ajoutez le dossier SwiftLib à votre projet Xcode pour utiliser les extensions.

Utilisation 🚀

Importez la librairie dans le fichier dans lequel vous voulez avoir accès aux extensions avec

import SwiftLib

...

Puis utilisez les extensions comme vous le feriez normalement si vous les aviez écrites dans votre fichier courrant.

Roadmap 📆

  • Peupler la librairie des extensions utiles.
  • Documenter et lister les extensions.

Comment contribuer 🔨

Tout le monde est invité à contribuer à ce projet en y ajoutant les extensions qui vous paraissent utiles et que vous verriez être utilisées dans d'autres projets chez Niji.

Les contributions se font sur le principe de MR et doivent être approuvées par un pair avant d'être mergées.
Il n'y a donc pas besoin de fork le projet, vous devriez avoir les droits dessus. Si ce n'est pas le cas, merci de vous tourner vers un admin du projet pour qu'il vous les donne.

Pour tester les modifications de la librairie en direct, remplacez la ligne pod 'SwiftLib' du Podfile de votre projet de test par :

pod 'SwiftLib', :path => '/Users/yourusername/path/to/pod/repo/SwiftLib'

Puis lancez la commande pod install.

Vous pourrez alors tester les modifications directement sans avoir besoin de push un nouveau tag.

Auteurs et contributeurs 🖋

Un grand merci aux contributeurs du projet ! ❤️

Liste des contributeurs :

  • Mathieu VIEL
  • Nicolas RENAUD

Licence 📝

SwiftLib est soumis à la licence MIT. Voir la licence pour plus d'informations.

You might also like...
Extensions for Swift Standard Types and Classes

Cent Cent is a library that extends certain Swift object types using the extension feature and gives its two cents to Swift language. Dollar is a Swif

Useful functions and extensions for sorting in Swift

SwiftSortUtils Motivation This library takes a shot at making comparing and sorting in Swift more pleasant. It also allows you to reuse your old NSSor

Collection of native Swift extensions to boost your development. Support tvOS and watchOS.
Collection of native Swift extensions to boost your development. Support tvOS and watchOS.

SparrowKit Collection of native Swift extensions to boost your development. Support iOS, tvOS and watchOS. If you like the project, don't forget to pu

A μframework of extensions for SequenceType in Swift 2.0, inspired by Python's itertools, Haskell's standard library, and other things.

SwiftSequence Full reference here. (If you're looking for data structures in Swift, those have been moved to here) SwiftSequence is a lightweight fram

Collection of Swift-extensions to boost development process.
Collection of Swift-extensions to boost development process.

SwiftBoost Collection of Swift-extensions to boost development process. Community Installation Ready to use on iOS 13+, tvOS 13+, watchOS 6.0+. Swift

Handy Combine extensions on NSObject, including Set<AnyCancellable>.
Handy Combine extensions on NSObject, including SetAnyCancellable.

Storable Description If you're using Combine, you've probably encountered the following code more than a few times. class Object: NSObject { var c

Helpful extensions for iOS app development 🚀
Helpful extensions for iOS app development 🚀

ExtensionKit includes many extensions, from getting the user location with a deterministic Combine API to a shimmer loading animation, to keyboard notification updates, bottom sheet and much much more. Check out the docs below or install the library with SPM to try it out.

 Extendy - A set of useful string extensions.
Extendy - A set of useful string extensions.

Extendy A set of useful string extensions. Requirements iOS 11.0+ Swift 5+ Installation CocoaPods Extendy is available through CocoaPods. To install i

Extensions that allow you to work with optionals

RxOptionals Sometimes it happens that you need to bind to several optional binders or to an optional method (for example, when using weak). To do this

Owner
Niji Digital
Niji Digital
BFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster.

Features • Classes and Extensions Compatibility • Requirements • Communication • Contributing • Installing and Usage • Documentation • Changelog • Exa

Fabrizio Brancati 992 Dec 2, 2022
Extensions giving Swift's Codable API type inference super powers 🦸‍♂️🦹‍♀️

Welcome to Codextended — a suite of extensions that aims to make Swift’s Codable API easier to use by giving it type inference-powered capabilities an

John Sundell 1.4k Jan 2, 2023
A handy collection of more than 500 native Swift extensions to boost your productivity.

SwifterSwift is a collection of over 500 native Swift extensions, with handy methods, syntactic sugar, and performance improvements for wide range of

SwifterSwift 12k Jan 7, 2023
A Swift package for rapid development using a collection of micro utility extensions for Standard Library, Foundation, and other native frameworks.

ZamzamKit ZamzamKit is a Swift package for rapid development using a collection of micro utility extensions for Standard Library, Foundation, and othe

Zamzam Inc. 261 Dec 15, 2022
🌤 Swift Combine extensions for asynchronous CloudKit record processing

Swift Combine extensions for asynchronous CloudKit record processing. Designed for simplicity.

Chris Araman 46 Dec 8, 2022
SharkUtils is a collection of Swift extensions, handy methods and syntactical sugar that we use within our iOS projects at Gymshark.

SharkUtils is a collection of Swift extensions, handy methods and syntactical sugar that we use within our iOS projects at Gymshark.

Gymshark 1 Jul 6, 2021
Useful Swift code samples, extensions, functionalities and scripts to cherry-pick and use in your projects

SwiftyPick ?? ?? Useful Swift code samples, extensions, functionalities and scripts to cherry-pick and use in your projects. Purpose The idea behind t

Manu Herrera 19 May 12, 2022
Useful extensions for my Swift code

UIViewController extensions presentAlert(withTitle title: String, message : String) presentAlertDialog(withTitle title: String, message : String, acti

Bogdan Grafonsky 1 Oct 17, 2021
Personally useful Swift Extensions for iOS Development

Useful-Swift-Extensions Personally useful Swift Extensions for iOS Development; cobbled together from a variety of development projects and StackOverf

Nick Arner 5 Dec 13, 2021
Swift extensions for asynchronous CloudKit record processing

⛅️ AsyncCloudKit Swift extensions for asynchronous CloudKit record processing. D

Chris Araman 17 Dec 8, 2022