mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
Replace deprecated APIs
This commit is contained in:
parent
ef7916d5e7
commit
f9bb5dbdf9
2 changed files with 8 additions and 8 deletions
|
|
@ -28,8 +28,8 @@ extension DoHSections: View {
|
|||
)
|
||||
.textContentType(.URL)
|
||||
.keyboardType(.numbersAndPunctuation)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.textInputAutocapitalization(.never)
|
||||
.autocorrectionDisabled()
|
||||
} label: {
|
||||
Text("IP address")
|
||||
Spacer()
|
||||
|
|
@ -69,8 +69,8 @@ extension DoHSections: View {
|
|||
.multilineTextAlignment(.trailing)
|
||||
.textContentType(.URL)
|
||||
.keyboardType(.URL)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.textInputAutocapitalization(.never)
|
||||
.autocorrectionDisabled()
|
||||
}
|
||||
} header: {
|
||||
Text("DNS-over-HTTPS Settings")
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ extension DoTSections: View {
|
|||
)
|
||||
.textContentType(.URL)
|
||||
.keyboardType(.numbersAndPunctuation)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.textInputAutocapitalization(.never)
|
||||
.autocorrectionDisabled()
|
||||
}
|
||||
.onDelete { self.configuration.servers.remove(atOffsets: $0) }
|
||||
.onMove { self.configuration.servers.move(fromOffsets: $0, toOffset: $1) }
|
||||
|
|
@ -60,8 +60,8 @@ extension DoTSections: View {
|
|||
.multilineTextAlignment(.trailing)
|
||||
.textContentType(.URL)
|
||||
.keyboardType(.URL)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.textInputAutocapitalization(.never)
|
||||
.autocorrectionDisabled()
|
||||
}
|
||||
} header: {
|
||||
Text("DNS-over-TLS Settings")
|
||||
|
|
|
|||
Loading…
Reference in a new issue