From 849a68f6b6e947dbc136c6556065c6633453a4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sipos=20Vikt=C3=B3ria=20D=C3=B3ra?= Date: Thu, 14 Oct 2021 16:02:23 +0200 Subject: [PATCH] Update M13ProgressHUD.m Fixes Xcode 13 build issue --- Classes/HUD/M13ProgressHUD.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/HUD/M13ProgressHUD.m b/Classes/HUD/M13ProgressHUD.m index 86dbabe..1c12cf9 100644 --- a/Classes/HUD/M13ProgressHUD.m +++ b/Classes/HUD/M13ProgressHUD.m @@ -407,7 +407,7 @@ - (void)unregisterFromNotificationCenter { } - (void)deviceOrientationDidChange:(NSNotification *)notification { - UIDeviceOrientation deviceOrientation = [notification.object orientation]; + UIDeviceOrientation deviceOrientation = [[UIDevice currentDevice] orientation]; if (_shouldAutorotate && UIDeviceOrientationIsValidInterfaceOrientation(deviceOrientation)) { if (UIDeviceOrientationIsPortrait(deviceOrientation)) {