EZSwiftExtensions
How Swift standard types and classes were supposed to work. A collection of useful extensions for the Swift Standard Library, Foundation, and UIKit.
Example Usage
Easily get an object at a specified index:
Easily access a random element:
Easily find the indexes of an object:
Easily check if an array contains another array:
Block Objects
These objects use completion blocks instead of selectors, taken from: CEMKit-Swift
Easily initialize a BlockButton:
Easily convert between different types:
Easily toggle it:
Easily initialize your objects:
Easily access your ViewController on top of your view stack:
Easily initialize your colors:
Easily run block of codes after a certain delay:
Easily run code every seconds:
Easily access your projects version and build numbers:
Installation
Manually (~10 seconds)
- Download and drop '/Sources' in your project.
- Congratulations!
Install via CocoaPods (~10 seconds)
You can use CocoaPods to install EZSwiftExtensions
by adding it to your Podfile
:
To get the full benefits import EZSwiftExtensions
wherever you import UIKit
Install via Carthage
Create a Cartfile
that lists the framework and run carthage bootstrap
. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/EZSwiftExtensions.framework
to an iOS project.
github "goktugyil/EZSwiftExtensions"
Requirements
- Swift 2 or later
Possible features
- More extensions! Please if there is an extension you are constantly using, send a pull request now!
- Fancy pictures and jpgs in documentation.
- Documentations inside code
- List of contents inside readme
- Completing
TODO
s in source code. - OSX compatibility and add here https://github.com/AndrewSB/awesome-osx
Sources Used
- ExSwift by pNre
- SKTUtils by raywenderlich
- CEMKit-Swift by cemolcay
- SwiftySwift by adeca
- Geometry by artman
- Swift-Extensions by vitkuzmenko
- SwiftTweetGettr by jmenter
- Basics by dennisweissmann
- toNumber by Mamesoft
- RBResizer by hcatlin
And countless gists and stackoverflow answers.
License
EZSwiftExtensions is available under the MIT license. See the LICENSE file.
Keywords
swift, extension, uikit, exswift, foundation, library, framework, tool