mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
Revert intended changes
This commit is contained in:
parent
f9bb5dbdf9
commit
d61e4c7a1b
1 changed files with 13 additions and 19 deletions
|
|
@ -15,26 +15,20 @@ extension DoHSections: View {
|
|||
var body: some View {
|
||||
Section {
|
||||
ForEach(0..<self.configuration.servers.count, id: \.self) { i in
|
||||
NavigationLink {
|
||||
TextField(
|
||||
"IP address",
|
||||
text: .init(
|
||||
get: { self.configuration.servers[i] },
|
||||
set: {
|
||||
self.configuration.servers[i] = $0
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
}
|
||||
)
|
||||
TextField(
|
||||
"IP address",
|
||||
text: .init(
|
||||
get: { self.configuration.servers[i] },
|
||||
set: {
|
||||
self.configuration.servers[i] = $0
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
}
|
||||
)
|
||||
.textContentType(.URL)
|
||||
.keyboardType(.numbersAndPunctuation)
|
||||
.textInputAutocapitalization(.never)
|
||||
.autocorrectionDisabled()
|
||||
} label: {
|
||||
Text("IP address")
|
||||
Spacer()
|
||||
Text(self.configuration.servers[i])
|
||||
}
|
||||
)
|
||||
.textContentType(.URL)
|
||||
.keyboardType(.numbersAndPunctuation)
|
||||
.textInputAutocapitalization(.never)
|
||||
.autocorrectionDisabled()
|
||||
}
|
||||
.onDelete { self.configuration.servers.remove(atOffsets: $0) }
|
||||
.onMove { self.configuration.servers.move(fromOffsets: $0, toOffset: $1) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue