Revert intended changes

This commit is contained in:
Kenta Kubo 2023-04-25 02:32:16 +09:00
parent f9bb5dbdf9
commit d61e4c7a1b

View file

@ -15,7 +15,6 @@ extension DoHSections: View {
var body: some View { var body: some View {
Section { Section {
ForEach(0..<self.configuration.servers.count, id: \.self) { i in ForEach(0..<self.configuration.servers.count, id: \.self) { i in
NavigationLink {
TextField( TextField(
"IP address", "IP address",
text: .init( text: .init(
@ -30,11 +29,6 @@ extension DoHSections: View {
.keyboardType(.numbersAndPunctuation) .keyboardType(.numbersAndPunctuation)
.textInputAutocapitalization(.never) .textInputAutocapitalization(.never)
.autocorrectionDisabled() .autocorrectionDisabled()
} label: {
Text("IP address")
Spacer()
Text(self.configuration.servers[i])
}
} }
.onDelete { self.configuration.servers.remove(atOffsets: $0) } .onDelete { self.configuration.servers.remove(atOffsets: $0) }
.onMove { self.configuration.servers.move(fromOffsets: $0, toOffset: $1) } .onMove { self.configuration.servers.move(fromOffsets: $0, toOffset: $1) }