Skip to content

Commit

Permalink
update to 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nghialv committed May 24, 2015
1 parent aff7ced commit 7537e47
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Example/Example/AppDelegate.swift
Expand Up @@ -13,8 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {

// write as a trailing closure
gcd.async(.Main) {
Expand Down
6 changes: 3 additions & 3 deletions GCD.podspec
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = "GCD"
s.version = "0.2"
s.version = "0.2.1"
s.summary = "A wrapper of Grand Central Dispatch written in Swift"
s.homepage = "https://github.com/nghialv/GCD"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "nghialv" => "nghialv2607@gmail.com" }
s.social_media_url = "https://twitter.com/nghialv2607"
s.platform = :ios
s.ios.deployment_target = "7.0"
s.source = { :git => "https://github.com/nghialv/GCD.git", :tag => "0.2" }
s.ios.deployment_target = "8.0"
s.source = { :git => "https://github.com/nghialv/GCD.git", :tag => "0.2.1" }
s.source_files = "GCD.swift"
s.requires_arc = true
end
4 changes: 2 additions & 2 deletions GCD.swift
Expand Up @@ -8,7 +8,7 @@
import Foundation

public typealias GCDClosure = () -> ()
public typealias GCDApplyClosure = (UInt) -> ()
public typealias GCDApplyClosure = (Int) -> ()
public typealias GCDOnce = dispatch_once_t

public enum QueueType {
Expand Down Expand Up @@ -223,7 +223,7 @@ public class gcd
*
*/
public class func apply(queueType: QueueType, interators: UInt, closure: GCDApplyClosure) {
dispatch_apply(interators, queueType.getQueue(), closure)
dispatch_apply(Int(interators), queueType.getQueue(), closure)
}

/**
Expand Down
10 changes: 8 additions & 2 deletions README.md
Expand Up @@ -90,5 +90,11 @@ myQueue.syncBarrier {
}
```

##Integration
Just drag GCD.swift file to the project tree
##Installation

- Installation with CocoaPods
`pod 'GCD'`

- Copying all the files into your project

- Using submodule

0 comments on commit 7537e47

Please sign in to comment.