-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
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
var body: some View {
VStack {
Text("List Representation")
.padding(10)
List {
...
}
}
}.background(PullToRefresh(action: {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
self.isShowing = false
}
}, isShowing: $isShowing)) ////Error is here
}
}
Thanks for suggestions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels