dropbox / dropbox/SwiftyDropbox

Usage in an app extension

Open
#410 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
721
Forks
218
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.