Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work with Swift 3 !! #1

Closed
mmazil opened this issue Jan 17, 2017 · 0 comments
Closed

does not work with Swift 3 !! #1

mmazil opened this issue Jan 17, 2017 · 0 comments

Comments

@mmazil
Copy link

mmazil commented Jan 17, 2017

/Pods/FontWeather.swift/FontWeather/FontWeather.swift:37:36: 'dispatch_once_t' is unavailable in Swift: Use lazily initialized globals instead

   struct Static {
        static var onceToken : dispatch_once_t = 0
    }

    let name = "FontWeather"
    if UIFont.fontNames(forFamilyName: name).isEmpty {
        dispatch_once(&Static.onceToken) {
            FontLoader.loadFont(name)
        }
    }
@mmazil mmazil closed this as completed Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant