Latest 1.0.2
Homepage https://github.com/PiXeL16/SwiftDelayer
License MIT
Platforms ios 8.0, requires ARC
Authors

SwiftDelayer
Build Status codecov.io CocoaPods Compatible GitHub license

Swift Delayer

Just a simple wrapper for the GCD delay functionality written in Swift

Installation

Get SwiftDelayer on CocoaPods, just add pod 'SwiftDelayer' to your Podfile and then run pod install

Usage

import SwiftDelayer

Delayer.delayOnMainQueue(seconds: 2.0){
    print("I was delayed for 2 seconds :-)")            
}

You can also delay on a specific Queue

import SwiftDelayer

let backgroundQueue = dispatch_get_global_queue(QOS_CLASS_BACKGROUND, 0)

Delayer.delayOnQueue(seconds: 3.0, queue: backgroundQueue){
    print("I was delayed for 3 seconds :-)")            
}

Author

Chris Jimenez – http://chrisjimenez.net, @chrisjimeneznat

Latest podspec

{
    "name": "SwiftDelayer",
    "version": "1.0.2",
    "summary": "Simple GCD delayer wrapper in Swift",
    "description": "Just a simple wrapper for the GCD delay functionality written in Swift",
    "homepage": "https://github.com/PiXeL16/SwiftDelayer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Chris Jimenez": "[email protected]"
    },
    "social_media_url": "http://twitter.com/chrisjimeneznat",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/PiXeL16/SwiftDelayer.git",
        "tag": "1.0.2"
    },
    "source_files": [
        "SwiftDelayer/",
        "SwiftDelayer/**/*.{h,m,swift}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This