I have a List. I want to disable first cell. How can I do it?
I set
.disabled(true)
but it doesn't work.
struct ContentView: View {
var body: some View {
List {
ForEach(1..<5) {
Text("\($0)")
.disabled($0 == 1)
}
}
}
}