TKUIServiceCard

public class TKUIServiceCard : TKUITableCard
extension TKUIServiceCard: UITableViewDelegate

A card that lists the route of an individual public transport service. Starts at the provided embarkation and optionally highlights where to get off.

  • Undocumented

    Declaration

    Swift

    public static var config: TKUIServiceCard.Configuration
  • Configures a new instance that will fetch the service details and the show them in the list and on the map.

    Declaration

    Swift

    public convenience init(titleView: (UIView, UIButton)? = nil, embarkation: StopVisits, disembarkation: StopVisits? = nil, reusing: TKUITripMapManager? = nil)

    Parameters

    embarkation

    Where to get onto the service

    disembarkation

    Where to get off the service (optional)

  • Configures a new instance that will fetch the service details for the provided public transport segment and the show them in the list and on the map.

    Note

    When initialised this config.serviceActionsFactory is not used.

    Declaration

    Swift

    public convenience init(titleView: (UIView, UIButton)? = nil, publicTransportSegment segment: TKSegment, reusing: TKUITripMapManager? = nil)

    Parameters

    segment

    A public transport segment. Will not work when provided with a different type of segment.

Card life cycle

  • Declaration

    Swift

    override public func didBuild(tableView: UITableView)
  • Declaration

    Swift

    public override func didAppear(animated: Bool)
  • Undocumented

    Declaration

    Swift

    typealias EmbarkationPair = (embarkation: StopVisits, disembarkation: StopVisits?)
  • Undocumented

    See more

    Declaration

    Swift

    struct Configuration

UITableViewDelegate + Headers