From a2ed4e3ffd7b5960d57c546ae3cdc4c59776345f Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 30 Oct 2025 19:40:59 +0000 Subject: [PATCH] UIViewComponentPeer: Use correct return type for supportedInterfaceOrientations --- .../juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm b/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm index b4a57933d6..9737bfebd1 100644 --- a/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm +++ b/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm @@ -353,10 +353,10 @@ struct CADisplayLinkDeleter - (JuceUIViewController*) init; -- (NSUInteger) supportedInterfaceOrientations; - (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation; - (void) willRotateToInterfaceOrientation: (UIInterfaceOrientation) toInterfaceOrientation duration: (NSTimeInterval) duration; - (void) didRotateFromInterfaceOrientation: (UIInterfaceOrientation) fromInterfaceOrientation; +- (UIInterfaceOrientationMask) supportedInterfaceOrientations; - (void) viewWillTransitionToSize: (CGSize) size withTransitionCoordinator: (id) coordinator; - (BOOL) prefersStatusBarHidden; - (UIStatusBarStyle) preferredStatusBarStyle; @@ -621,7 +621,7 @@ MultiTouchMapper UIViewComponentPeer::currentTouches; return self; } -- (NSUInteger) supportedInterfaceOrientations +- (UIInterfaceOrientationMask) supportedInterfaceOrientations { return Orientations::getSupportedOrientations(); }