Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Nov 14, 2023
1 parent 7d2546c commit 3db4c85
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ios/Example/Example/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,21 @@ Morondava is a charming coastal town located on the western coast of Madagascar.
""")
]
@EnvironmentObject var nativebrik: NativebrikClient

var body: some View {
VStack(alignment: .leading, spacing: 0) {
Header()
ScrollView(.vertical) {
nativebrik
.experiment
.embedding("TOP_COMPONENT")
.frame(width: nil, height: 270)
.embedding("TOP_COMPONENT", onEvent: nil) { phase in
switch phase {
case .completed(let view):
view.frame(width: nil, height: 270)
default:
EmptyView().frame(width: nil, height: 0)
}
}

ForEach(self.items, id: \.title) { item in
item.padding()
Expand Down

0 comments on commit 3db4c85

Please sign in to comment.