Skip to content

Usage in an extension #69

@andrewvmail

Description

@andrewvmail

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
//        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions