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

'StringStyle' is ambiguous for type lookup #416

Open
mvpaudrey opened this issue Sep 21, 2021 · 2 comments
Open

'StringStyle' is ambiguous for type lookup #416

mvpaudrey opened this issue Sep 21, 2021 · 2 comments

Comments

@mvpaudrey
Copy link

iOS 15 SDK introduced StringStyle struct. So it's conflicting with the one from the framework and causes this error:
'StringStyle' is ambiguous for type lookup in this context

@ZevEisenberg
Copy link
Collaborator

We might want to consider renaming it, because this will affect everyone targeting iOS 15+. In the meantime, you can specify the module like this: BonMot.StringStyle. You can also rename it globally by making a typealias, like typealias GangnamStyle = BonMot.StringStyle.

@chrisballinger
Copy link
Contributor

This is mentioned at the top of the README now: https://github.com/Rightpoint/BonMot#attributedstring

Long term we should probably rename ours with a backwards-compatibility shim / deprecation warning to avoid conflict with the system framework.

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