You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please check if you have class or struct with name State in your code? If yes, it could be a conflict between you custom class/struct State and default attribute @State
Hi,
Thanks for providing such a nice solution
Have anyone ever faced with next issue:
Enum 'State' cannot be used as an attribute
My code is next:
import SwiftUI
import SwiftUIRefresh
struct ListView: View {
@ObservedObject var viewModel: CarsViewModel
@State private var isShowing = false //Error is here
}
Thanks for suggestions
The text was updated successfully, but these errors were encountered: