Skip to content

Cannot compile when an extension is present. #5

@Tri-Divide

Description

@Tri-Divide

Imported as a part of MultiSelectSegmentedControl install, my project has an extension.

I try to build the project and I get this error on the file "UIApplication+Sweeter.swift":

'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

This occurs on line 11:

public class func topViewController(base: UIViewController? = UIApplication.shared.keyWindow?.rootViewController) -> UIViewController? {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions