Skip to content

Commit 9c3a415

Browse files
author
Šimon Šesták
committed
Fix access level of SceneDelegate
1 parent 5f7a43e commit 9c3a415

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/FuturedHelpers/Helpers/SceneDelegate.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import SwiftUI
99

1010
#if !os(macOS)
11-
protocol AppSceneDelegate: AnyObject, UIWindowSceneDelegate, ObservableObject {
11+
public protocol AppSceneDelegate: AnyObject, UIWindowSceneDelegate, ObservableObject {
1212
var delegate: SceneDelegate? { get set }
1313
}
1414

15-
protocol SceneDelegate: AnyObject {
15+
public protocol SceneDelegate: AnyObject {
1616
func sceneDidEnterBackground(_ scene: UIScene)
1717
func sceneWillEnterForeground(_ scene: UIScene)
1818
}
@@ -37,7 +37,7 @@ extension View {
3737
/// - Description:
3838
/// In the main app root view call this modifier and pass the SceneDelegate. You need to specify the AppSceneDelegate which conforms to the UIWindowSceneDelegate.
3939
/// This is necessary because the SceneDelegate is accessible in SwiftUI only via EnviromentObject.
40-
func set<T: AppSceneDelegate>(appSceneDelegateClass: T.Type, sceneDelegate: SceneDelegate) -> some View {
40+
public func set<T: AppSceneDelegate>(appSceneDelegateClass: T.Type, sceneDelegate: SceneDelegate) -> some View {
4141
modifier(SceneDelegateWrapperViewModifier<T>(delegate: sceneDelegate))
4242
}
4343
}

0 commit comments

Comments
 (0)