iOS implementation

iOS

iOS Trip Screen

1242

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

VariableDescription
tripInfo: TripInfoThe activity will take the origin and destination, if available from tripInfo, use this to pre-populate the addressview and begin fetching quotes