Skip to content

It is the simple kit in Swift, which will share common utilities and examples.

License

Notifications You must be signed in to change notification settings

ankitthakur/SHSwiftKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHSwiftKit alt tag

CI Status Version Carthage Compatible License Platform Coverage Status

Description

SHSwiftKit description.

Docs

[local closure](http://ankitthakur.github.io/blog/swift/scope/2016/02/08/localScope.html)
// global closures
public func local(closure: () -> ())
public func localAutoreleasePool(closure: () -> ())

global variables
public var GlobalMainQueue: dispatch_queue_t { get }
public var GlobalUserInteractiveQueue: dispatch_queue_t { get }
public var GlobalUserInitiatedQueue: dispatch_queue_t { get }
public var GlobalUtilityQueue: dispatch_queue_t { get }
public var GlobalBackgroundQueue: dispatch_queue_t { get }

// public tuple for color components
public typealias ColorComponents = (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)

// global functions
public func degreesToRadians(degrees: CGFloat) -> CGFloat
public func radiansToDegrees(radians: CGFloat) -> CGFloat

Image Helpers

Color Helpers

Device Info Helpers

Author

Ankit Thakur, [email protected]

Installation

SHSwiftKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SHSwiftKit'

SHSwiftKit is also available through Carthage. To install just write into your Cartfile:

github "ankitthakur/SHSwiftKit"

Author

Ankit Thakur, [email protected]

Contributing

We would love you to contribute to SHSwiftKit, check the CONTRIBUTING file for more info.

License

SHSwiftKit is available under the MIT license. See the LICENSE file for more info.

About

It is the simple kit in Swift, which will share common utilities and examples.

Resources

License

Stars

Watchers

Forks

Packages

No packages published