Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove preferredStatusBarStyle from STPThreeDSUICustomization #1308

Merged
merged 2 commits into from
Aug 21, 2019

Conversation

yuki-stripe
Copy link
Collaborator

Summary

It turns out this property doesn't work as expected. When a UIViewController is in a UINavigationController (always for our 3DS2 SDK), the UINavigationController.barStyle decides what color the status bar is.

Since it therefore does nothing, I've removed it and documented how to use barStyle to control the color instead.

[0] https://forums.developer.apple.com/thread/30435

preferredStatusBarStyle is called on the application's top-most fullscreen view controller (the root view controller if there are no modal presentations)...UINavigationController delegates to the top view controller only when its navigation bar is hidden, otherwise it determines the status bar style itself.

Motivation

#1301

Testing

Tested dark mode configuration in Standard Integration example app, works as expected. Not committing it b/c we are implementing a better version soon here #1307

@yuki-stripe yuki-stripe merged commit 92b0fd4 into master Aug 21, 2019
@yuki-stripe yuki-stripe deleted the yuki-remove-preferredStatusBarStyle branch August 21, 2019 23:02
yuki-stripe added a commit that referenced this pull request Aug 23, 2019
* Remove preferredStatusBarStyle from STPThreeDSUICustomization

* Fix test

(cherry picked from commit 92b0fd4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants