Skip to content

Commit

Permalink
Add visibilityObservation on spotlightLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlidakis committed Oct 4, 2023
1 parent a92b814 commit 49dce2a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public struct ParticipantsSpotlightLayout<Factory: ViewFactory>: View {
customData: [:],
call: call
)
.visibilityObservation(in: geometry.frame(in: .global)) { onChangeTrackVisibility(participant, $0) }
.adjustVideoFrame(to: thumbnailSize, ratio: 1)
.cornerRadius(8)
.accessibility(identifier: "spotlightParticipantView")
Expand Down

0 comments on commit 49dce2a

Please sign in to comment.