We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To make it easier to diagnose your issue, please fill out the following:
There's a hard crash from this method if the navigation bar color is UIColor.white:
Basically if the color is defined using white/alpha rather than rgba, *component here will not have 3 values, and you get an exec bad acess
Just try calling this method with a nav bar with the tint color set to UIColor.white
11
cocoapods
latest
The text was updated successfully, but these errors were encountered:
STPColorUtils.perceivedBrightnessForColor
Hi @spencerkohan,
Thanks for finding & reporting this! I had to turn on Address Sanitization before I saw the crash, but once I did it was 100% reproducible.
I've merged a fix, and it should go out in our next release.
Thanks! Dan
Sorry, something went wrong.
Update MIGRATING.md (#951)
8e98c83
No branches or pull requests
To make it easier to diagnose your issue, please fill out the following:
Summary
There's a hard crash from this method if the navigation bar color is UIColor.white:
const CGFloat *component = CGColorGetComponents(color.CGColor);
CGFloat brightness = ((component[0] * 299) + (component[1] * 587) + (component[2] * 114)) / 1000;
return brightness;
}
Basically if the color is defined using white/alpha rather than rgba, *component here will not have 3 values, and you get an exec bad acess
Code to reproduce
Just try calling this method with a nav bar with the tint color set to UIColor.white
iOS version
11
Installation method
cocoapods
SDK version
latest
The text was updated successfully, but these errors were encountered: