TKUIServiceCard

@MainActor
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

    @MainActor
    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

    @MainActor
    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

    @MainActor
    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

UITableViewDelegate + Headers