Tailor the Swift language to your needs by choosing from a number of extensions comprising useful functions missing from the core libraries. Available as a Cocoapod for ease of inclusion into your projects.
CollectionAdditions- Map directly to an array of distinct elements / check whether aCollectionis not empty.DictionaryAdditions- Instantiate a Swift dictionary from an array of tuples.NSAttributedStringAdditions- Trim attributed strings in the same way as would a regular string. DetailsPriceFormatter- Formats numeric values as prices inStringformat.StringAdditions- For checking whether aStringis not empty.UIControlAdditions- Extension for debouncing (primarily)UIButtontaps.UIColorAdditions-UIColorextension for getting a lighter / darker shade of a given colour. DetailsUIViewAdditions-UIViewextension for rounding view corners individually.
To run the example project, clone the repo, and run pod install from the Example directory first.
CocoaPods is a dependency manager which integrates dependencies into your Xcode workspace. To install it using RubyGems run:
gem install cocoapodsTo install TailorSwift using Cocoapods, simply add the following line to your Podfile:
pod "TailorSwift"Then run the command:
pod installFor more information see here.
Carthage is a dependency manager which produces a binary for manual integration into your project. It can be installed via Homebrew using the commands:
brew update
brew install carthageIn order to integrate TailorSwift into your project via Carthage, add the following line to your project's Cartfile:
github "rwbutler/TailorSwift"
From the macOS Terminal run carthage update --platform iOS to build the framework then drag TailorSwift.framework into your Xcode project.
For more information see here.
TailorSwift is available under the MIT license. See the LICENSE file for more info.
- AnimatedGradientView - Powerful gradient animations made simple for iOS.
| AnimatedGradientView |
|---|
- Cheats - Retro cheat codes for modern iOS apps.
- Connectivity - Improves on Reachability for determining Internet connectivity in your iOS application.
- FeatureFlags - Allows developers to configure feature flags, run multiple A/B or MVT tests using a bundled / remotely-hosted JSON configuration file.
- FlexibleRowHeightGridLayout - A UICollectionView grid layout designed to support Dynamic Type by allowing the height of each row to size to fit content.
- Hash - Lightweight means of generating message digests and HMACs using popular hash functions including MD5, SHA-1, SHA-256.
- Skylark - Fully Swift BDD testing framework for writing Cucumber scenarios using Gherkin syntax.
- TailorSwift - A collection of useful Swift Core Library / Foundation framework extensions.
- TypographyKit - Consistent & accessible visual styling on iOS with Dynamic Type support.
- Updates - Automatically detects app updates and gently prompts users to update.
| Cheats | Connectivity | FeatureFlags | Skylark | TypographyKit | Updates |
|---|---|---|---|---|---|
- Clear DerivedData - Utility to quickly clear your DerivedData directory simply by typing
cddfrom the Terminal. - Config Validator - Config Validator validates & uploads your configuration files and cache clears your CDN as part of your CI process.
- IPA Uploader - Uploads your apps to TestFlight & App Store.
- Palette - Makes your TypographyKit color palette available in Xcode Interface Builder.
| Config Validator | IPA Uploader | Palette |
|---|---|---|