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

Fix the theme of button items in the navigation bar #1753

Closed
wants to merge 1 commit into from

Conversation

rbenna
Copy link

@rbenna rbenna commented Jan 25, 2021

Summary

Accessing navigationController property of UIViewController from viewDidLoad will always return nil. So, navigationController?.navigationBar.stp_theme ?? theme in updateAppearance in STPCoreViewController will always use theme property and not the theme that has been set on the navigation bar.

Motivation

I wanted to customize the navigation bar items with a different theme than the default one, but without success because of the bug described above.

Testing

@CLAassistant
Copy link

CLAassistant commented Jan 25, 2021

CLA assistant check
All committers have signed the CLA.

@davidme-stripe
Copy link
Contributor

Thank you for the pull request! We'll incorporate this into the next version of the SDK.

@davidme-stripe
Copy link
Contributor

We landed this in 21.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants