diff --git a/Stripe/UINavigationBar+Stripe_Theme.m b/Stripe/UINavigationBar+Stripe_Theme.m index 83e103aff2d..a58a5ca9249 100644 --- a/Stripe/UINavigationBar+Stripe_Theme.m +++ b/Stripe/UINavigationBar+Stripe_Theme.m @@ -39,6 +39,7 @@ - (void)setStp_theme:(STPTheme *)theme { NSForegroundColorAttributeName: theme.primaryForegroundColor, }; +#ifdef __IPHONE_13_0 if (@available(iOS 13.0, *)) { self.standardAppearance.backgroundColor = theme.secondaryBackgroundColor; self.standardAppearance.titleTextAttributes = self.titleTextAttributes; @@ -70,6 +71,7 @@ - (void)setStp_theme:(STPTheme *)theme { self.scrollEdgeAppearance = self.standardAppearance; self.compactAppearance = self.standardAppearance; } +#endif }