From 8d0ea5f2c8b78cea9e4ad4740d64fbc3cf5c992e Mon Sep 17 00:00:00 2001 From: woxtu Date: Mon, 26 Aug 2024 20:15:57 +0900 Subject: [PATCH] Declare states as private --- .../ProfileCardFeature/Input/ProfileCardInputImage.swift | 4 ++-- app-ios/Sources/SponsorFeature/SponsorView.swift | 2 +- app-ios/Sources/StaffFeature/StaffView.swift | 2 +- app-ios/Sources/TimetableFeature/TimetableListView.swift | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app-ios/Sources/ProfileCardFeature/Input/ProfileCardInputImage.swift b/app-ios/Sources/ProfileCardFeature/Input/ProfileCardInputImage.swift index 93139911e..d1e13aabd 100644 --- a/app-ios/Sources/ProfileCardFeature/Input/ProfileCardInputImage.swift +++ b/app-ios/Sources/ProfileCardFeature/Input/ProfileCardInputImage.swift @@ -3,8 +3,8 @@ import _PhotosUI_SwiftUI import Theme struct ProfileCardInputImage: View { - @State var isPickerPresented = false - @State var selectedImage: Image? + @State private var isPickerPresented = false + @State private var selectedImage: Image? @Binding var selectedPhoto: PhotosPickerItem? var title: String diff --git a/app-ios/Sources/SponsorFeature/SponsorView.swift b/app-ios/Sources/SponsorFeature/SponsorView.swift index 710568c24..d0e4a7240 100644 --- a/app-ios/Sources/SponsorFeature/SponsorView.swift +++ b/app-ios/Sources/SponsorFeature/SponsorView.swift @@ -5,7 +5,7 @@ import Model public struct SponsorView: View { private let store: StoreOf - @State var selectedSponsorData: Sponsor? + @State private var selectedSponsorData: Sponsor? public init(store: StoreOf) { self.store = store diff --git a/app-ios/Sources/StaffFeature/StaffView.swift b/app-ios/Sources/StaffFeature/StaffView.swift index c508d9aad..d5d9f8235 100644 --- a/app-ios/Sources/StaffFeature/StaffView.swift +++ b/app-ios/Sources/StaffFeature/StaffView.swift @@ -6,7 +6,7 @@ import Model public struct StaffView: View { private let store: StoreOf - @State var selectedStaffData: Staff? + @State private var selectedStaffData: Staff? public init(store: StoreOf) { self.store = store diff --git a/app-ios/Sources/TimetableFeature/TimetableListView.swift b/app-ios/Sources/TimetableFeature/TimetableListView.swift index e5fe98dba..509919dbf 100644 --- a/app-ios/Sources/TimetableFeature/TimetableListView.swift +++ b/app-ios/Sources/TimetableFeature/TimetableListView.swift @@ -11,9 +11,9 @@ public struct TimetableView: View { self.store = store } - @State var timetableMode = TimetableMode.list - @State var switchModeIcon: ImageResource = .icGrid - @State var selectedTab: DayTab = DayTab.day1 + @State private var timetableMode = TimetableMode.list + @State private var switchModeIcon: ImageResource = .icGrid + @State private var selectedTab: DayTab = DayTab.day1 public var body: some View { VStack {