Skip to content

Commit

Permalink
[NEW] add pitch control for map on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrey committed Jan 26, 2021
1 parent 5c741fc commit 97fb636
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OwnTracks/OwnTracks/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ - (void)viewDidLoad {

#if TARGET_OS_MACCATALYST
self.mapView.showsZoomControls = TRUE;
if (@available(macCatalyst 14.0, *)) {
self.mapView.showsPitchControl = TRUE;
} else {
// Fallback on earlier versions
}
#endif

DDLogInfo(@"[ViewController] viewDidLoad mapView region %g %g %g %g",
Expand Down

0 comments on commit 97fb636

Please sign in to comment.