From 27e2297fb6b19a1f274130d2ee80b95f59ca42a5 Mon Sep 17 00:00:00 2001 From: Kofktu Date: Wed, 28 Mar 2018 23:09:56 +0900 Subject: [PATCH 1/2] [Issue-122] If viewController.modalPresentationStyle is custom containerView color fix UINavigationController+KMNavigationBarTransition modify containerViewBackgroundColor --- .../UINavigationController+KMNavigationBarTransition.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m b/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m index 9743056..881e425 100755 --- a/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m +++ b/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m @@ -62,6 +62,10 @@ + (void)load { } - (UIColor *)km_containerViewBackgroundColor { + id tc = self.transitionCoordinator; + if (tc != nil && [tc containerView].backgroundColor != nil) { + return [tc containerView].backgroundColor; + } return [UIColor whiteColor]; } From 90ddee9bc03e7fda1a72f547d3c4b78a6e878eb9 Mon Sep 17 00:00:00 2001 From: kofktu Date: Thu, 29 Mar 2018 11:11:25 +0900 Subject: [PATCH 2/2] [Issue-122] remove background color check --- .../UINavigationController+KMNavigationBarTransition.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m b/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m index 881e425..f9cd82a 100755 --- a/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m +++ b/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m @@ -63,7 +63,7 @@ + (void)load { - (UIColor *)km_containerViewBackgroundColor { id tc = self.transitionCoordinator; - if (tc != nil && [tc containerView].backgroundColor != nil) { + if (tc) { return [tc containerView].backgroundColor; } return [UIColor whiteColor];