Skip to content

Commit

Permalink
ifdef for ios 13
Browse files Browse the repository at this point in the history
  • Loading branch information
davidme-stripe committed Sep 9, 2019
1 parent 8e57545 commit f91fd2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Stripe/UINavigationBar+Stripe_Theme.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -70,6 +71,7 @@ - (void)setStp_theme:(STPTheme *)theme {
self.scrollEdgeAppearance = self.standardAppearance;
self.compactAppearance = self.standardAppearance;
}
#endif
}


Expand Down

0 comments on commit f91fd2d

Please sign in to comment.