You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Initializes and returns a newly allocated card showing results for a specific routing request.
115
+
///
116
+
/// - Parameters:
117
+
/// - request: The routing request to display results for.
118
+
/// - editable: Whether the user can modify the routing parameters. (Defaults to `true` if not provided.)
119
+
/// - modes: Optional set of transport mode identifiers to set as the initial mode selection. If provided and non-empty, these modes will be enabled initially and all others will be disabled. Users can then interact with the mode picker to change the selection. Walking modes (`wa_wal`, `wa_whe`) are handled specially: if no walking modes are specified in this set, their current enabled/disabled state is preserved. If `nil` or empty, the user's current mode preferences are used unchanged.
Copy file name to clipboardExpand all lines: Sources/TripKitUI/controller/TKUIRoutingResultsViewController.swift
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -52,12 +52,14 @@ public class TKUIRoutingResultsViewController: TGCardViewController {
52
52
/// other than the user's current location, or when you want to set the
53
53
/// departure or arrival time.
54
54
///
55
-
/// - Parameter request: The trip request object, which should be instatiated
56
-
/// using `TripRequest.insert(from:to:for:timeType:info:)`
57
-
publicinit(request:TripRequest){
55
+
/// - Parameters:
56
+
/// - request: The trip request object, which should be instatiated
57
+
/// using `TripRequest.insert(from:to:for:timeType:info:)`
58
+
/// - modes: Optional set of transport mode identifiers to set as the initial mode selection. If provided and non-empty, these modes will be enabled initially and all others will be disabled. Users can then interact with the mode picker to change the selection. Walking modes (`wa_wal`, `wa_whe`) are handled specially: if no walking modes are specified in this set, their current enabled/disabled state is preserved. If `nil` or empty, the user's current mode preferences are used unchanged.
0 commit comments