Skip to content

Commit

Permalink
add debug assert to make sure this method is used how we expect
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Aug 15, 2024
1 parent aa7b8be commit 63d8fff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MapboxNavigation/NavigationMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,8 @@ open class NavigationMapView: MLNMapView, UIGestureRecognizerDelegate {
Sets the camera directly over a series of coordinates.
*/
@objc public func setOverheadCameraView(from userLocation: CLLocationCoordinate2D, along coordinates: [CLLocationCoordinate2D], for bounds: UIEdgeInsets) {
assert(!coordinates.isEmpty, "must specify coordinates when setting overhead camera view");

Check warning on line 1081 in MapboxNavigation/NavigationMapView.swift

View workflow job for this annotation

GitHub Actions / Code Style

Lines should not have trailing semicolons (trailing_semicolon)

self.isAnimatingToOverheadMode = true
guard let slicedLine = LineString(coordinates).sliced(from: userLocation)?.coordinates else {
return
Expand Down

0 comments on commit 63d8fff

Please sign in to comment.