File tree 1 file changed +17
-18
lines changed
DemoApp/Sources/Components 1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -90,24 +90,23 @@ final class DemoAppViewFactory: ViewFactory {
90
90
availableFrame: CGRect ,
91
91
onChangeTrackVisibility: @escaping @MainActor ( CallParticipant , Bool ) -> Void
92
92
) -> some View {
93
- DefaultViewFactory
94
- . shared
95
- . makeVideoParticipantsView (
96
- viewModel: viewModel,
97
- availableFrame: availableFrame,
98
- onChangeTrackVisibility: onChangeTrackVisibility
99
- )
100
- . snapshot ( trigger: snapshotTrigger) { [ weak viewModel] snapshot in
101
- Task { @MainActor [ weak viewModel] in
102
- viewModel? . sendSnapshot ( snapshot)
103
- }
93
+ VideoParticipantsView (
94
+ viewFactory: self ,
95
+ viewModel: viewModel,
96
+ availableFrame: availableFrame,
97
+ onChangeTrackVisibility: onChangeTrackVisibility
98
+ )
99
+ . snapshot ( trigger: snapshotTrigger) { [ weak viewModel] snapshot in
100
+ Task { @MainActor [ weak viewModel] in
101
+ viewModel? . sendSnapshot ( snapshot)
104
102
}
105
- . overlay (
106
- VStack {
107
- Spacer ( )
108
- DemoClosedCaptionsView ( viewModel)
109
- . padding ( . bottom, 30 )
110
- }
111
- )
103
+ }
104
+ . overlay (
105
+ VStack {
106
+ Spacer ( )
107
+ DemoClosedCaptionsView ( viewModel)
108
+ . padding ( . bottom, 30 )
109
+ }
110
+ )
112
111
}
113
112
}
You can’t perform that action at this time.
0 commit comments