I'm trying to make this Done text view be disabled if the user has not entered anything in the text field
Does anyone know a fix to this?
Code Block @Binding var activityName: String TextField("Enter activity name", text: $activityName) .navigationBarItems(trailing: Text("Done") .disabled(self.activityName.isEmpty))
Does anyone know a fix to this?