freshOS / ws-deprecated

⚠️ Deprecated - (in favour of Networking) :cloud: Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing)
MIT License
353 stars 32 forks source link

Usage in an extension #69

Open andrewvmail opened 4 years ago

andrewvmail commented 4 years ago

Getting this when trying to use inside an extension 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

I comment out everything in that function and it compiles fine

    func tick() {
//        let previousValue = UIApplication.shared.isNetworkActivityIndicatorVisible
//        let newValue = (runningRequests > 0)
//        if newValue != previousValue {
//            UIApplication.shared.isNetworkActivityIndicatorVisible = newValue
//        }
    }