From 97fb636c3b6c43be0d612c5648d6bcfd89c2f265 Mon Sep 17 00:00:00 2001 From: Christoph Krey Date: Tue, 26 Jan 2021 17:10:41 +0100 Subject: [PATCH] [NEW] add pitch control for map on MacOS --- OwnTracks/OwnTracks/ViewController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OwnTracks/OwnTracks/ViewController.m b/OwnTracks/OwnTracks/ViewController.m index d8702968..8958f12b 100644 --- a/OwnTracks/OwnTracks/ViewController.m +++ b/OwnTracks/OwnTracks/ViewController.m @@ -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",