Skip to content

Commit a17113b

Browse files
committed
Fix bug.
1 parent e90c33e commit a17113b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct BrowseOGCAPIFeatureServiceView: View {
2020
@State private var error: Error?
2121

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

2525
/// The data model for the sample.
2626
@StateObject private var model = Model()
@@ -92,6 +92,9 @@ struct BrowseOGCAPIFeatureServiceView: View {
9292
} message: {
9393
Text("Please provide a URL to an OGC API feature service.")
9494
}
95+
.onAppear {
96+
textfieldAlertIsPresented = true
97+
}
9598
.errorAlert(presentingError: $error)
9699
}
97100
}

0 commit comments

Comments
 (0)