Skip to content

Commit

Permalink
Move sheet presentation outside of ForEach loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-raveendran committed May 27, 2024
1 parent baede57 commit 2d56276
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ struct SingleStreamView: View {
contentMode: .aspectFit,
identifier: "SingleStreamViewVideoTile.\(videoRendererViewModel.streamSource.sourceId.displayLabel)"
)
.sheet(isPresented: $isShowingStatsInfoScreen) {
statisticsView()
}
.tag(videoRendererViewModel.streamSource.id)
.frame(width: proxy.size.width, height: proxy.size.height)
}
Expand All @@ -123,6 +120,9 @@ struct SingleStreamView: View {
bottomToolBarView
.offset(x: 0, y: showScreenControls ? 0 : Animation.offset)
}
.sheet(isPresented: $isShowingStatsInfoScreen) {
statisticsView()
}
.onAppear {
showControlsAndObserveInteractions()
}
Expand Down

0 comments on commit 2d56276

Please sign in to comment.