BearingFollowController | iOS SDK | 2GIS Documentation
iOS SDK

BearingFollowController

Controller following the map bearing.

public convenience init(
    bearingSource: BearingSource,
    animationDuration: TimeInterval = 1,
    valueThreshold: Bearing = Bearing(value: 1)
)

Creates a controller following the map bearing.

Parameters
bearingSource
BearingSource

Source of bearing information.

animationDuration
TimeInterval

Non-negative duration of changing the actual bearing.

valueThreshold
Bearing

Non-negative threshold of changing the actual bearing taken into account.