From 0d44760641e3cb10d41144c8ccb8391a876fb6d8 Mon Sep 17 00:00:00 2001 From: Florian Doyon Date: Thu, 16 Apr 2020 10:18:40 +0100 Subject: [PATCH 1/2] Add support for Dark / Light theme with low transparency fallback --- RMActionController/RMActionController.m | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/RMActionController/RMActionController.m b/RMActionController/RMActionController.m index 16553b7..6d6251e 100644 --- a/RMActionController/RMActionController.m +++ b/RMActionController/RMActionController.m @@ -293,12 +293,16 @@ - (void)setupTopContainerElements { if(!self.disableBlurEffects) { self.topContainer.backgroundColor = [UIColor clearColor]; } else { - self.topContainer.backgroundColor = [UIColor whiteColor]; + if (@available(iOS 13.0, *)) { + self.topContainer.backgroundColor = [UIColor secondarySystemBackgroundColor]; + }else { + self.topContainer.backgroundColor = [UIColor whiteColor]; + } } //Debugging Accessibility Labels #ifdef DEBUG - self.topContainer.accessibilityLabel = @"TopContainer"; + self.topContainer.accessibilityLabel = @"TopContainer "; #endif } @@ -336,7 +340,11 @@ - (void)setupBottomContainerElements { if(!self.disableBlurEffects) { self.bottomContainer.backgroundColor = [UIColor clearColor]; } else { - self.bottomContainer.backgroundColor = [UIColor whiteColor]; + if (@available(iOS 13.0, *)) { + self.bottomContainer.backgroundColor = [UIColor secondarySystemBackgroundColor]; + }else { + self.bottomContainer.backgroundColor = [UIColor whiteColor]; + } } //Debugging Accessibility Labels From acbec02df26b86fc606a6b62b7680380e8d4cf52 Mon Sep 17 00:00:00 2001 From: Florian Doyon Date: Fri, 17 Apr 2020 12:12:19 +0100 Subject: [PATCH 2/2] fix whitespace issue --- RMActionController/RMActionController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMActionController/RMActionController.m b/RMActionController/RMActionController.m index 6d6251e..66f1b8e 100644 --- a/RMActionController/RMActionController.m +++ b/RMActionController/RMActionController.m @@ -302,7 +302,7 @@ - (void)setupTopContainerElements { //Debugging Accessibility Labels #ifdef DEBUG - self.topContainer.accessibilityLabel = @"TopContainer "; + self.topContainer.accessibilityLabel = @"TopContainer"; #endif }