Post not yet marked as solved
Post marked as unsolved with 8 replies, 4,420 views
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) } } }}