diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index 4c2fc6966..85974c41a 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -200,7 +200,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, Logging { } task.resume() } else { - print("No theme URL") + self.logger.debug("No theme URL.") return } } else { diff --git a/iOS/Settings/Account and Extensions/Extensions/EnableExtensionViewModel.swift b/iOS/Settings/Account and Extensions/Extensions/EnableExtensionViewModel.swift index 930241210..7baad5982 100644 --- a/iOS/Settings/Account and Extensions/Extensions/EnableExtensionViewModel.swift +++ b/iOS/Settings/Account and Extensions/Extensions/EnableExtensionViewModel.swift @@ -145,7 +145,7 @@ public final class EnableExtensionViewModel: NSObject, ObservableObject, OAuthSw } if case ASWebAuthenticationSessionError.canceledLogin = error { - print("Login cancelled.") + self.logger.debug("Login cancelled.") } else { self.showExtensionError = (error, true) } @@ -153,7 +153,7 @@ public final class EnableExtensionViewModel: NSObject, ObservableObject, OAuthSw session.presentationContextProvider = self if !session.start() { - print("Session failed to start!!!") + logger.debug("Session failed to start!!!") } } diff --git a/iOS/UIKit Extensions/UIStoryboard-Extensions.swift b/iOS/UIKit Extensions/UIStoryboard-Extensions.swift index 92caedf99..a32f9b466 100644 --- a/iOS/UIKit Extensions/UIStoryboard-Extensions.swift +++ b/iOS/UIKit Extensions/UIStoryboard-Extensions.swift @@ -7,8 +7,9 @@ // import UIKit +import RSCore -extension UIStoryboard { +extension UIStoryboard: Logging { static let preferredContentSizeForFormSheetDisplay = CGSize(width: 460.0, height: 400.0) @@ -44,7 +45,7 @@ extension UIStoryboard { let storyboardId = String(describing: type) guard let viewController = instantiateViewController(withIdentifier: storyboardId) as? T else { - print("Unable to load view with Scene Identifier: \(storyboardId)") + logger.error("Unable to load view with Scene Identifier: \(storyboardId)") fatalError() }