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.

  • 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 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)

  • Declaration

    Swift

    required convenience public init?(coder: NSCoder)
  • Declaration

    Swift

    override public func encode(with aCoder: NSCoder)

Card life cycle

UITableViewDelegate + Headers