Skip to content

Usage in an app extension #410

@igorkulman

Description

@igorkulman

I want to use SwiftyDropbox not only in an iOS app but also in an app extension. The problem is the auth method require passing UIApplication.shared which is not available in the extension. Is there a way around it?

Checking the code I see the UIApplication.shared is basically only used in MobileSharedApplication to find the root VC when a VC is not explicitly provided. So maybe if in addition to public init(sharedApplication: UIApplication, controller: UIViewController?, openURL: @escaping ((URL) -> Void)) there was also a public init(controller: UIViewController, openURL: @escaping ((URL) -> Void)) it could work as well in an app extension.

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