iOS 8.0 or Greater
Swift 3.1
If you are using Swift 2.3 use PXDToolkit version 0.2.1
PXDToolkit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PXDToolkit", '~> 0.3'
If you are using Swift 2.3 use PXDToolkit version 0.2.1:
pod "PXDToolkit", '0.2.1'
Add this to your podfile (if it is not already there) to make the pod work with Swift 3.1 (or Swift 2.3):
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.1' # or '2.3'
end
end
end
Delays the execution of the closure. Always runs on the main thread.
delay(seconds: 2) {
print("hello!")
}
Jörn Schoppe, [email protected]
Comments and suggestions are highly welcome!
PXDToolkit is available under the MIT license. See the LICENSE file for more info.