Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Oct 17, 2023
1 parent 5f28280 commit dd9f8bc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ios/Nativebrik/Classes/sdk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Config {
let config = Config(
projectId: self.projectId
)

for listener in eventListeners {
config.eventListeners.append(listener)
}
Expand Down Expand Up @@ -157,7 +157,7 @@ public class NativebrikClient: ObservableObject {
self.overlayVC = OverlayViewController(user: self.user, config: config, repositories: repositories)
self.experiment = NativebrikExperiment(user: self.user, config: config, repositories: repositories, overlay: self.overlayVC)
}

public func overlayViewController() -> UIViewController {
return self.overlayVC
}
Expand All @@ -183,7 +183,7 @@ public class NativebrikExperiment {
self.repositories = repositories
self.overlayVC = overlay
}

public func embedding(_ id: String) -> some View {
return EmbeddingSwiftView(
experimentId: id,
Expand All @@ -193,7 +193,7 @@ public class NativebrikExperiment {
modalViewController: self.overlayVC.modalViewController
)
}

public func embedding<V: View>(
_ id: String,
onEvent: ((_ event: ComponentEvent) -> Void)?,
Expand All @@ -208,7 +208,7 @@ public class NativebrikExperiment {
content: content
)
}

public func embedding<I: View, P: View>(
_ id: String,
onEvent: ((_ event: ComponentEvent) -> Void)?,
Expand All @@ -225,7 +225,7 @@ public class NativebrikExperiment {
placeholder: placeholder
)
}

public func embeddingUIView(_ id: String) -> UIView {
return EmbeddingUIView(
experimentId: id,
Expand All @@ -236,7 +236,7 @@ public class NativebrikExperiment {
fallback: nil
)
}

public func embeddingUIView(_ id: String, onEvent: ((_ event: ComponentEvent) -> Void)?) -> UIView {
return EmbeddingUIView(
experimentId: id,
Expand All @@ -247,7 +247,7 @@ public class NativebrikExperiment {
fallback: nil
)
}

public func embeddingUIView(_ id: String, onEvent: ((_ event: ComponentEvent) -> Void)?, content: @escaping (_ phase: ComponentPhase) -> UIView) -> UIView {
return EmbeddingUIView(
experimentId: id,
Expand All @@ -258,7 +258,7 @@ public class NativebrikExperiment {
fallback: content
)
}

public func remoteConfig(_ id: String, phase: @escaping ((_ phase: RemoteConfigPhase) -> Void)) -> RemoteConfig {
return RemoteConfig(
user: self.user,
Expand All @@ -269,7 +269,7 @@ public class NativebrikExperiment {
phase: phase
)
}

public func remoteConfigAsView<V: View>(
_ id: String,
@ViewBuilder phase: @escaping ((_ phase: RemoteConfigPhase) -> V)
Expand Down

0 comments on commit dd9f8bc

Please sign in to comment.