Merge pull request #1560 from friedbunny/compass-device-rotation-rotation
Rotate compass on device orientation changes
This commit is contained in:
@@ -642,6 +642,12 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
|
||||
{
|
||||
[self.attributionSheet dismissWithClickedButtonIndex:self.attributionSheet.cancelButtonIndex animated:YES];
|
||||
}
|
||||
|
||||
if (self.compass.alpha)
|
||||
{
|
||||
[self updateHeadingForDeviceOrientation];
|
||||
[self updateCompass];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Life Cycle -
|
||||
|
||||
Reference in New Issue
Block a user