diff --git a/Package.swift b/Package.swift index 48e7c8a0..309b044a 100644 --- a/Package.swift +++ b/Package.swift @@ -10,6 +10,7 @@ let package = Package( platforms: [ .macOS(.v10_12), .iOS(.v10), + .tvOS(.v13) ], products: [ .library(name: "SwiftyDropbox", targets:["SwiftyDropbox"]), diff --git a/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/LoadingViewController.swift b/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/LoadingViewController.swift index e0ddaffd..d596aa3f 100644 --- a/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/LoadingViewController.swift +++ b/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/LoadingViewController.swift @@ -12,7 +12,7 @@ class LoadingViewController: UIViewController { private let loadingSpinner: UIActivityIndicatorView override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { - if #available(iOS 13.0, *) { + if #available(iOS 13.0, tvOS 13.0, *) { loadingSpinner = UIActivityIndicatorView(style: .large) } else { loadingSpinner = UIActivityIndicatorView(style: .whiteLarge) diff --git a/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift b/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift index 9fecd30b..de7f2f70 100644 --- a/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift +++ b/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift @@ -315,7 +315,7 @@ open class MobileSharedApplication: SharedApplication { if let controller = controller { self.controller = controller } else { - if #available(iOS 13, *) { + if #available(iOS 13, tvOS 13, *) { self.controller = sharedApplication.findKeyWindow()?.rootViewController } else { self.controller = sharedApplication.keyWindow?.rootViewController