Skip to content

Commit

Permalink
Set initial trip state in iOS FerrostarCore
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Dec 5, 2023
1 parent b080b89 commit dca02f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apple/Sources/FerrostarCore/FerrostarCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public protocol FerrostarCoreDelegate: AnyObject {

observableState = FerrostarObservableState(snappedLocation: location, heading: locationProvider.lastHeading, fullRoute: route.geometry, steps: route.inner.steps)
navigationController = NavigationController(route: route.inner, config: NavigationControllerConfig(stepAdvance: stepAdvance.ffiValue))
tripState = navigationController?.getInitialState(location: location.userLocation)
}

/// Stops navigation and stops requesting location updates (to save battery).
Expand Down

0 comments on commit dca02f2

Please sign in to comment.