how to make a text field non editable

how to make a textfield non editable please just give me the answer if you have none of this you can do this instead.
Answered by evansau1 in 662363022
You can use the disabled(_:) modifier.)

Code Block swift
TextField("Value", text: $text)
.disabled(true)


Accepted Answer
You can use the disabled(_:) modifier.)

Code Block swift
TextField("Value", text: $text)
.disabled(true)


Thanks.
how to make a text field non editable
 
 
Q