iOS
iOS Trip Screen
iOS example
let tripScreen = tripScreenBuilder
.buildTripScreen(trip: trip, callback: { [weak self] result in
self?.dismiss(animated: true, completion: nil)
switch result.completedValue() {
case .some(.rebookTrip(let details)): // user finished trip and wants to rebook it
default: break
}
})
self.present(journeyView, animated: true, completion: nil)
Builder variables
Variable | Description |
---|---|
tripInfo : TripInfo | The activity will take the origin and destination, if available from tripInfo, use this to pre-populate the addressview and begin fetching quotes |