|
|
2 lat temu | |
|---|---|---|
| .. | ||
| Sources | 2 lat temu | |
| LICENSE | 2 lat temu | |
| LICENSE 2 | 2 lat temu | |
| README 2.md | 2 lat temu | |
| README.md | 2 lat temu | |
SwifterSwift is a collection of over 500 native Swift extensions, with handy methods, syntactic sugar, and performance improvements for wide range of primitive data types, UIKit and Cocoa classes –over 500 in 1– for iOS, macOS, tvOS, watchOS and Linux.
SwifterSwift is Swift v5.0 compatible starting from v5
v3.1.1.v3.2.0.CocoaPods
To integrate SwifterSwift into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'SwifterSwift'
pod 'SwifterSwift/SwiftStdlib'
pod 'SwifterSwift/Foundation'
pod 'SwifterSwift/AppKit'
pod 'SwifterSwift/MapKit'
pod 'SwifterSwift/CoreGraphics'
pod 'SwifterSwift/CoreLocation'
pod 'SwifterSwift/SpriteKit'
pod 'SwifterSwift/Dispatch'
Carthage
To integrate SwifterSwift into your Xcode project using Carthage, specify it in your Cartfile:
github "SwifterSwift/SwifterSwift" ~> 5.0
Swift Package Manager
You can use The Swift Package Manager to install SwifterSwift by adding the proper description to your Package.swift file:
import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.package(url: "https://github.com/SwifterSwift/SwifterSwift.git", from: "5.0.0")
]
)
Manually
Add the SwifterSwift folder to your Xcode project to use all extensions, or a specific extension.
SwiftStdlib Extensions
Array extensionsBidirectionalCollection extensionsBinaryFloatingPoint extensionsBool extensionsCharacter extensionsCollection extensionsComparable extensionsDictionary extensionsDouble extensionsFloat extensionsFloatingPoint extensionsInt extensionsOptional extensionsOptional extensionsRandomAccessCollection extensionsRangeReplaceableCollection extensionsSequence extensionsSignedInteger extensionsSignedNumeric extensionsString extensionsStringProtocol extensionsFoundation Extensions
Calendar extensionsData extensionsDate extensionsFileManager extensionsLocale extensionsNSAttributedString extensionsNSPredicate extensionsURL extensionsURLRequest extensionsUserDefaults extensionsUIKit Extensions
UIActivity extensionsUIAlertController extensionsUIApplication extensionsUIBarButtonItem extensionsUIButton extensionsUICollectionView extensionsUIColor extensionsUIDatePicker extensionsUIEdgeInsets extensionsUIFont extensionsUIGestureRecognizer extensionsUIImage extensionsUIImageView extensionsUILabel extensionsUILayoutPriority extensionsUINavigationBar extensionsUINavigationController extensionsUINavigationItem extensionsUIRefreshControl extensionsUIScrollView extensionsUISearchBar extensionsUISegmentedControl extensionsUISlider extensionsUIStackView extensionsUIStoryboard extensionsUISwitch extensionsUITabBar extensionsUITableView extensionsUITextField extensionsUITextView extensionsUIViewController extensionsUIView extensionsUIWindow extensionsAppKit Extensions
CoreGraphics Extensions
CoreLocation Extensions
MapKit Extensions
SpriteKit Extensions
Dispatch Extensions
SwifterSwift is a library of over 500 properties and methods, designed to extend Swift's functionality and productivity, staying faithful to the original Swift API design guidelines.
Check Examples.playground from the project for some cool examples!
Documentation for all extensions, with examples, is available at swifterswift.com/docs
We want your feedback. Please refer to contributing guidelines before participating.
It is always nice to talk with other people using SwifterSwift and exchange experiences, so come join our Slack channel.
Special thanks to:
SwifterSwift is released under the MIT license. See LICENSE for more information.