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 8f5703d commit dd874dfCopy full SHA for dd874df
Sources/LiveViewNative/Coordinators/LiveSessionConfiguration.swift
@@ -27,6 +27,22 @@ public struct LiveSessionConfiguration {
27
public init() {
28
}
29
30
+ public init(
31
+ navigationMode: NavigationMode? = nil,
32
+ connectParams: ((URL) -> [String: Any])? = nil,
33
+ urlSession: URLSession? = nil
34
+ ) {
35
+ if let navigationMode {
36
+ self.navigationMode = navigationMode
37
+ }
38
+ if let connectParams {
39
+ self.connectParams = connectParams
40
41
+ if let urlSession {
42
+ self.urlSession = urlSession
43
44
45
+
46
/// Possible modes for live view navigation.
47
public enum NavigationMode {
48
/// Navigation is entirely disabled. The live view will stay on the URL it was initially connected to.
0 commit comments