ComponentAction
public enum ComponentAction
Actions that can be triggered by component view models
-
Undocumented
Declaration
Swift
case push(TGCard, selection: MKAnnotation? = nil)
-
Undocumented
Declaration
Swift
case present(UIViewController, inNavigationController: Bool = false)
-
Use this for the home card to decide what to do when selecing the provided annotation by the provided component. The home card will take action according to how it’s
selectionMode
is set.Declaration
Swift
case handleSelection(TKAutocompletionSelection, component: TKUIHomeComponentViewModel? = nil)
-
Shows the user interface to customize the home card, which let’s users re-order and toggle individual home card components.
Declaration
Swift
case showCustomizer
-
Hides the home card component of the matching identifier.
Declaration
Swift
case hideSection(identifier: String)
-
A custom handler that should be triggered, providing the home card view controller
Declaration
Swift
case trigger((UIViewController) -> Void)
-
Undocumented
Declaration
Swift
case success