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

iOS 14 support #2

Open
VladimirLyseev opened this issue Dec 12, 2020 · 2 comments
Open

iOS 14 support #2

VladimirLyseev opened this issue Dec 12, 2020 · 2 comments

Comments

@VladimirLyseev
Copy link

It doesn't work on iOS 14. Do you know how to fix it?

@VladimirJph
Copy link

VladimirJph commented Dec 13, 2020

Solved. iOS 14 expects NSCTVariationAxisIdentifier as NSNumber instead of NSCTVariationAxisName in attributionDictionary.

var attributesDict = [NSNumber: Any]()
attributes.forEach {
    attributesDict[$0.identifier] = $0.currentValue
}

Change identifier type to NSNumber

@chrszlz
Copy link
Owner

chrszlz commented Mar 4, 2021

Happy to merge a PR if you have one @VladimirJph @VladimirJph

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

No branches or pull requests

3 participants