Configuration

struct Configuration

Undocumented

  • Set this to indicate if permission to access location services should be requested when the card is loaded. When setting to true, the map is zoomed to a user’s current location and begins displaying nearby stops and locations.

    The default value is true

    Declaration

    Swift

    public var requestLocationServicesOnLoad: Bool
  • Set this to place actionable items on the map view. Items are arranged vertically.

    Declaration

    Swift

    public var topMapToolbarItems: [UIView]?
  • Set this to add a list of autocompletion providers to use.

    The default providers, if none is provided, are Apple and SkedGo geocoders.

    Declaration

    Swift

    public var autocompletionDataProviders: [TKAutocompleting]?
  • Set this to specify what view model classes can be used by the home card to build its content

    Declaration

    Swift

    public var componentViewModelClasses: [TKUIHomeComponentViewModel.Type]
  • Set this to true if your components aren’t customizable and they should always be ordered as defined in componentViewModelClasses.

    Declaration

    Swift

    public var ignoreComponentCustomization: Bool
  • Set this to customise what should happen if map content or an autocompletion result is tapped (or whenever one of your component view models calls .handleSelection)

    Declaration

    Swift

    public var selectionMode: SelectionMode
  • Set where the initial VoiceOver focus should be. Defaults to .searchBar

    Declaration

    Swift

    public var voiceOverStartMode: TKUIHomeCard.VoiceOverMode
  • Determines if a TKUIRoutingQueryInputCard starts with a focus on the destination field, if activated through the direction button in the home card.

    Declaration

    Swift

    public var directionButtonStartsQueryInputInDestinationMode: Bool