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

Minimal GCD convenience layer. Dispatch succinctly.

Usage

dispatch after 3 seconds:

delay (3) {
    messageView.hidden = true
}

dispatch to main thread:

async_main {
    label.text = "new title"
}

do on main thread:

sync_main {
    try { managedObjectContext.executeFetchRequest(fetchRequest) }
    // ...
}

Installation

Just add MiniDispatch.swift to your project.

Using CocoaPods:

pod 'MiniDispatch'

Latest podspec

{
    "name": "MiniDispatch",
    "version": "1.0.2",
    "summary": "Minimal GCD convenience layer. Dispatch succinctly.",
    "description": "Usage:nn```swiftnview.addConstrainedSubview(label, constrain: .Leading, .Top)nview.constrain(textField, at: .Leading, to: label, at: .Trailing, diff: 8)n```",
    "homepage": "https://github.com/yonat/MiniDispatch",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Yonat Sharon": "[email protected]"
    },
    "social_media_url": "http://twitter.com/yonatsharon",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/yonat/MiniDispatch.git",
        "tag": "1.0.2"
    },
    "source_files": "MiniDispatch.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This