TKUITripModeByModeCard
public class TKUITripModeByModeCard : TGPageCard
-
Declaration
Swift
public typealias TripStartedActionHandler = (TKUITripModeByModeCard, Trip) -> Void
-
Declaration
Swift
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
public var tripStartedHandler: TripStartedActionHandler?
-
Constructs a page card configured for displaying the segments on a mode-by-mode basis of a trip.
Declaration
Swift
public init(startingOn segment: TKSegment, mode: TKUISegmentMode = .onSegment, mapManager: TKUITripMapManager? = nil, initialPosition: TGCardPosition = .peaking) throws
Parameters
segment
Segment to focus on first
-
Declaration
Swift
public convenience init(mapManager: TKUITripMapManager)
-
Declaration
Swift
public convenience init(trip: Trip, initialPosition: TGCardPosition = .peaking)
-
Declaration
Swift
public override func didBuild(cardView: TGCardView?, headerView: TGHeaderView?)
-
Declaration
Swift
public override func didAppear(animated: Bool)
-
Declaration
Swift
public override func didMoveToPage(index: Int)
-
Declaration
Swift
public func offsetToReach(mode: TKUISegmentMode, in segment: TKSegment) -> Int?
-
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