Skip to content

Commit 594f76b

Browse files
committed
Fix "textfield" spelling.
1 parent a17113b commit 594f76b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Shared/Samples/Browse OGC API feature service/BrowseOGCAPIFeatureServiceView.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ struct BrowseOGCAPIFeatureServiceView: View {
1919
/// The error shown in the error alert.
2020
@State private var error: Error?
2121

22-
/// A Boolean value indicating whether the textfield alert should be presented.
23-
@State private var textfieldAlertIsPresented = false
22+
/// A Boolean value indicating whether the text field alert should be presented.
23+
@State private var textFieldAlertIsPresented = false
2424

2525
/// The data model for the sample.
2626
@StateObject private var model = Model()
@@ -37,7 +37,7 @@ struct BrowseOGCAPIFeatureServiceView: View {
3737
.toolbar {
3838
ToolbarItemGroup(placement: .bottomBar) {
3939
Button("Open Service") {
40-
textfieldAlertIsPresented = true
40+
textFieldAlertIsPresented = true
4141
}
4242

4343
Spacer()
@@ -63,8 +63,9 @@ struct BrowseOGCAPIFeatureServiceView: View {
6363
}
6464
}
6565
}
66-
.alert("Load OGC API feature service", isPresented: $textfieldAlertIsPresented) {
67-
// Textfield has a default OGC API URL.
66+
.alert("Load OGC API feature service", isPresented: $textFieldAlertIsPresented) {
67+
// Text
68+
field has a default OGC API URL.
6869
TextField("URL", text: $userInput)
6970
.keyboardType(.URL)
7071
.textContentType(.URL)
@@ -86,14 +87,14 @@ struct BrowseOGCAPIFeatureServiceView: View {
8687
}
8788
.disabled(userInput.isEmpty)
8889
Button("Cancel", role: .cancel) {
89-
// Reset the default value of the textfield.
90+
// Reset the default value of the text field.
9091
userInput = URL.daraaService.absoluteString
9192
}
9293
} message: {
9394
Text("Please provide a URL to an OGC API feature service.")
9495
}
9596
.onAppear {
96-
textfieldAlertIsPresented = true
97+
textFieldAlertIsPresented = true
9798
}
9899
.errorAlert(presentingError: $error)
99100
}

0 commit comments

Comments
 (0)