We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0148d12 commit 8282e6eCopy full SHA for 8282e6e
Sources/SwiftBoost/Foundation/Logger.swift
@@ -9,7 +9,7 @@ import Foundation
9
*/
10
public enum Logger {
11
12
- public static func configure(levels: [Level], fileNameMode: FileNameMode) {
+ public static func configure(levels: [Level] = Level.allCases, fileNameMode: FileNameMode = .show) {
13
Configurator.shared.levels = levels
14
Configurator.shared.fileNameMode = fileNameMode
15
}
Sources/SwiftBoost/UIKit/Extensions/UIApplicationExtension.swift
@@ -19,5 +19,11 @@ public extension UIApplication {
19
20
21
22
+
23
+ var rootController: UIViewController? {
24
+ guard let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene else { return nil }
25
+ guard let rootViewController = scene.windows.first?.rootViewController else { return nil }
26
+ return rootViewController
27
+ }
28
29
#endif
0 commit comments