AMLSearchBar
public struct AMLSearchBar : View
A Search Bar used to take location user search input.
-
A Search Bar used to take location user search input.
Declaration
Swift
public init( text: Binding<String>, displayState: Binding<DisplayState>, onEditing: @escaping () -> Void, onCommit: @escaping () -> Void, onCancel: @escaping () -> Void, showDisplayStateButton: Bool = true )Parameters
textThe text currently displayed in the search bar.
displayStateDisplaying a map or list.
onEditingAction called on searchbar entering focus.
onCommitAction called on user tapping search.
onCancelAction called on user tapping
xbutton.showDisplayStateButtonWhether a display state button should be displayed. Default is true.
-
Declaration
Swift
public var body: some View { get } -
Displaying a map or list.
See moreDeclaration
Swift
struct DisplayState : Equatable
View on GitHub
AMLSearchBar Structure Reference