diff --git a/Stripe/PublicHeaders/STPTheme.h b/Stripe/PublicHeaders/STPTheme.h index 6c09e46e19f..236122c4937 100644 --- a/Stripe/PublicHeaders/STPTheme.h +++ b/Stripe/PublicHeaders/STPTheme.h @@ -84,7 +84,7 @@ NS_ASSUME_NONNULL_BEGIN /** A Boolean value indicating whether the navigation bar for any view controllers - presented modally by the SDK should be translucent. The default value is NO. + presented modally by the SDK should be translucent. The default value is YES. */ @property (nonatomic) BOOL translucentNavigationBar; diff --git a/Stripe/STPTheme.m b/Stripe/STPTheme.m index 159999acf5b..a9cb65ed862 100644 --- a/Stripe/STPTheme.m +++ b/Stripe/STPTheme.m @@ -71,7 +71,7 @@ - (instancetype)init { _errorColor = STPThemeDefaultErrorColor; _font = STPThemeDefaultFont; _emphasisFont = STPThemeDefaultMediumFont; - _translucentNavigationBar = NO; + _translucentNavigationBar = YES; } return self; } @@ -204,6 +204,7 @@ - (id)copyWithZone:(__unused NSZone *)zone { copyTheme.errorColor = self.errorColor; copyTheme.font = self.font; copyTheme.emphasisFont = self.emphasisFont; + copyTheme.translucentNavigationBar = self.translucentNavigationBar; return copyTheme; }