I have a SwiftUI project using MVVM structure but I have lots of variables in View now, is that right?How can I improve this?
For example, this is my add record view
@State private var money: String = ""
@State private var desc: String = ""
@FocusState var isDescFieldFocused: Bool
@State private var showDatePicker: Bool = false
@State private var showingAlert: Bool = false
@State private var showConstantlyAlert: Bool = false
@State private var showKeyPad: Bool = false
@State private var showCatesPanel: Bool = false
@State private var selectedCate: String = ""
Should I put all these in View Models?