TKUITripModeByModeCard
@MainActor
public class TKUITripModeByModeCard : TGPageCard
Undocumented
-
Undocumented
Declaration
Swift
public typealias TripStartedActionHandler = (TKUITripModeByModeCard, Trip) -> Void
-
Undocumented
Declaration
Swift
@MainActor public static var config: TKUITripModeByModeCard.Configuration
-
An action handler that is called when the mode by mode card is presented. The first parameters is the mode by mode card launched, while the second is the trip whose segments are presented by the mode by mode card.
Declaration
Swift
@MainActor public var tripStartedHandler: TripStartedActionHandler?
-
Undocumented
Declaration
Swift
@MainActor public var modeByModeDelegate: TKUITripModeByModeCardDelegate?
-
Constructs a page card configured for displaying the segments on a mode-by-mode basis of a trip.
Declaration
Swift
@MainActor public init(startingOn segment: TKSegment, mode: TKUISegmentMode = .getReady, mapManager: TKUITripMapManager? = nil, initialPosition: TGCardPosition = .peaking) throws
Parameters
segment
Segment to focus on first
-
Undocumented
Declaration
Swift
@MainActor public convenience init(mapManager: TKUITripMapManager)
-
Undocumented
Declaration
Swift
@MainActor public convenience init(trip: Trip, initialPosition: TGCardPosition = .peaking)
-
Declaration
Swift
@MainActor public override func didBuild(cardView: TGCardView?, headerView: TGHeaderView?)
-
Declaration
Swift
@MainActor public override func didAppear(animated: Bool)
-
Declaration
Swift
@MainActor public override func didMoveToPage(index: Int)
-
Undocumented
Declaration
Swift
@MainActor public func offsetToReach(mode: TKUISegmentMode, in segment: TKSegment) -> Int?
-
Undocumented
Declaration
Swift
@MainActor public func shows(tripURL: URL, tripID: String?) -> Bool
-
Configurtion of any
TKUITripModeByModeCard
. Use this to determine how each page is built.This isn’t created directly, but rather you modify the static instance accessible from
See moreTKUITripModeByModeCard.config
.Declaration
Swift
public struct Configuration