Skip to content

Commit

Permalink
Declare states as private
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu committed Aug 26, 2024
1 parent 4a0ebc3 commit 8d0ea5f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app-ios/Sources/SponsorFeature/SponsorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Model

public struct SponsorView: View {
private let store: StoreOf<SponsorReducer>
@State var selectedSponsorData: Sponsor?
@State private var selectedSponsorData: Sponsor?

public init(store: StoreOf<SponsorReducer>) {
self.store = store
Expand Down
2 changes: 1 addition & 1 deletion app-ios/Sources/StaffFeature/StaffView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Model

public struct StaffView: View {
private let store: StoreOf<StaffReducer>
@State var selectedStaffData: Staff?
@State private var selectedStaffData: Staff?

public init(store: StoreOf<StaffReducer>) {
self.store = store
Expand Down
6 changes: 3 additions & 3 deletions app-ios/Sources/TimetableFeature/TimetableListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8d0ea5f

Please sign in to comment.