You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ArcGISToolkit/Components/Search/SearchView.swift
+12-14
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,6 @@ import ArcGIS
60
60
/// To see the `SearchView` in action, and for examples of `Search` customization, check out the [Examples](https://github.com/Esri/arcgis-maps-sdk-swift-toolkit/tree/main/Examples/Examples)
61
61
/// and refer to [SearchExampleView.swift](https://github.com/Esri/arcgis-maps-sdk-swift-toolkit/blob/main/Examples/Examples/SearchExampleView.swift)
62
62
/// in the project. To learn more about using the `SearchView` see the <doc:SearchViewTutorial>.
63
-
@available(visionOS, unavailable)
64
63
publicstructSearchView:View{
65
64
/// Creates a `SearchView`.
66
65
/// - Parameters:
@@ -221,21 +220,23 @@ public struct SearchView: View {
221
220
}
222
221
Spacer()
223
222
if viewModel.isEligibleForRequery {
224
-
Button{
225
-
viewModel.repeatSearch()
226
-
} label:{
227
-
Text(
228
-
"Repeat Search Here",
223
+
Button(
224
+
String(
225
+
localized:"Repeat Search Here",
229
226
bundle:.toolkitModule,
230
227
comment:"""
231
-
A label for button to show when the user has panned the map away
232
-
from the original search location. 'Here' is in reference to the
233
-
current visible extent of the map or scene.
234
-
"""
228
+
A label for button to show when the user has panned the map away
229
+
from the original search location. 'Here' is in reference to the
230
+
current visible extent of the map or scene.
231
+
"""
235
232
)
233
+
){
234
+
viewModel.repeatSearch()
236
235
}
236
+
#if !os(visionOS)
237
237
.buttonStyle(.plain)
238
238
.esriBorder()
239
+
#endif
239
240
}
240
241
}
241
242
.listStyle(.plain)
@@ -270,7 +271,7 @@ public struct SearchView: View {
270
271
}
271
272
272
273
// MARK: Modifiers
273
-
@available(visionOS, unavailable)
274
+
274
275
extensionSearchView{
275
276
/// Specifies whether a built-in result view will be shown. If `false`, the result display/selection
276
277
/// list is not shown. Set to `false` if you want to define a custom result list. You might use a
0 commit comments