From ec8b34cad30c8fef085db163359a1cae47c6badd Mon Sep 17 00:00:00 2001 From: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com> Date: Wed, 13 Mar 2024 08:29:26 +0900 Subject: [PATCH] organize --- .../Buttons/CameraToggleButton.swift | 31 +++++++------- .../Buttons/DisconnectRoomButton.swift | 11 +++-- .../Buttons/MicrophoneToggleButton.swift | 32 +++++++-------- .../ForEach/ForEachParticipant.swift | 28 +++++++------ .../ForEach/ForEachTrack.swift | 24 ++++++----- .../Layouts/ParticipantLayout.swift | 40 +++++++++---------- .../Scopes/ComponentsScope.swift | 12 +++--- .../LiveKitComponents/Scopes/RoomScope.swift | 12 +++--- .../LiveKitComponents/Support/HorVGrid.swift | 18 ++++----- .../LiveKitComponents/Support/HorVStack.swift | 26 ++++++------ .../LiveKitComponents/TrackReference.swift | 2 +- .../Views/LocalCameraPreview.swift | 10 ++--- .../ConnectionQualityIndicatorView.swift | 6 +-- .../ParticipantInformationView.swift | 16 ++++---- .../Views/Participant/ParticipantView.swift | 15 ++++--- .../Views/Room/ControlsView.swift | 14 ++++--- .../Views/Room/LocalCameraVideoView.swift | 9 ++--- .../TrackPublication/VideoTrackView.swift | 23 +++++++---- 18 files changed, 167 insertions(+), 162 deletions(-) diff --git a/Sources/LiveKitComponents/Buttons/CameraToggleButton.swift b/Sources/LiveKitComponents/Buttons/CameraToggleButton.swift index b5b6002..e220d42 100644 --- a/Sources/LiveKitComponents/Buttons/CameraToggleButton.swift +++ b/Sources/LiveKitComponents/Buttons/CameraToggleButton.swift @@ -19,34 +19,33 @@ import SwiftUI /// The Camera Toggle Button is a button that toggles the camera on and off. public struct CameraToggleButton: View { - @EnvironmentObject var room: Room - @State var isBusy = false + @EnvironmentObject private var _room: Room + @State private var _isBusy = false + private let _label: ComponentBuilder