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

    text

    The text currently displayed in the search bar.

    displayState

    Displaying a map or list.

    onEditing

    Action called on searchbar entering focus.

    onCommit

    Action called on user tapping search.

    onCancel

    Action called on user tapping x button.

    showDisplayStateButton

    Whether a display state button should be displayed. Default is true.

  • Declaration

    Swift

    public var body: some View { get }
  • Displaying a map or list.

    See more

    Declaration

    Swift

    struct DisplayState : Equatable