Skip to content

Commit

Permalink
Update join.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
pawan-100ms authored May 9, 2024
1 parent 95a37c0 commit 76aff09
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/ios/v2/how-to-guides/set-up-video-conferencing/join.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ struct MeetingView: View {
@ObservedObject var roomModel = HMSRoomModel(roomCode: "qdr-mik-seb")

var body: some View {


VStack {
switch roomModel.roomState {

case .notJoined, .leftMeeting:
Expand All @@ -191,6 +192,8 @@ struct MeetingView: View {
// Button to leave the room
...
}
}
.environmentObject(roomModel)
}
}
```
Expand All @@ -209,7 +212,8 @@ struct MeetingView: View {
@ObservedObject var roomModel = HMSRoomModel(roomCode: "qdr-mik-seb")

var body: some View {


VStack {
switch roomModel.roomState {

case .notJoined, .leftMeeting:
Expand All @@ -233,6 +237,8 @@ struct MeetingView: View {
}
}
}
}
.environmentObject(roomModel)
}
}
```
Expand Down

0 comments on commit 76aff09

Please sign in to comment.