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)
-
Declaration
Swift
override public func didBuild(tableView: UITableView)
-
Declaration
Swift
public override func didAppear(animated: Bool)
-
Declaration
Swift
typealias EmbarkationPair = (embarkation: StopVisits, disembarkation: StopVisits?)
-
Declaration
Swift
struct Configuration
-
Declaration
Swift
public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
-
Declaration
Swift
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat
-
Declaration
Swift
public func scrollViewShouldScrollToTop(_ scrollView: UIScrollView) -> Bool