From 49dce2a3bed8c9a5f193c37420f28f8bef3405fc Mon Sep 17 00:00:00 2001 From: Ilias Pavlidakis Date: Wed, 4 Oct 2023 17:40:30 +0300 Subject: [PATCH] Add visibilityObservation on spotlightLayout --- .../CallView/ParticipantsSpotlightLayout.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/StreamVideoSwiftUI/CallView/ParticipantsSpotlightLayout.swift b/Sources/StreamVideoSwiftUI/CallView/ParticipantsSpotlightLayout.swift index f5c5a76fe..5b68c5078 100644 --- a/Sources/StreamVideoSwiftUI/CallView/ParticipantsSpotlightLayout.swift +++ b/Sources/StreamVideoSwiftUI/CallView/ParticipantsSpotlightLayout.swift @@ -70,6 +70,7 @@ public struct ParticipantsSpotlightLayout: View { customData: [:], call: call ) + .visibilityObservation(in: geometry.frame(in: .global)) { onChangeTrackVisibility(participant, $0) } .adjustVideoFrame(to: thumbnailSize, ratio: 1) .cornerRadius(8) .accessibility(identifier: "spotlightParticipantView")