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.
-
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 moreDeclaration
Swift
struct Configuration
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat
-
Undocumented
Declaration
Swift
public func scrollViewShouldScrollToTop(_ scrollView: UIScrollView) -> Bool
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)