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

Xcode 13 run bugs: 'AttributedString' is ambiguous for type lookup in this context #135

Open
zhangfurun opened this issue Sep 22, 2021 · 2 comments

Comments

@zhangfurun
Copy link

'AttributedString' is ambiguous for type lookup in this context
截屏2021-09-22 下午1 21 50

@zhangfurun zhangfurun changed the title Xcode 13 run bugs Xcode 13 run bugs: 'AttributedString' is ambiguous for type lookup in this context Sep 22, 2021
@fredericoamsb
Copy link

One workaround is to change NSAttributedString to NSMutableAttributedString.

@aornano
Copy link

aornano commented Oct 5, 2021

That happened 'cause iOS 15 contains Foundation.AttributedString, to avoid this misunderstanding from the compiler you can make an alias to your code like this:
typealias AttributedString = SwiftRichString.AttributedString

just before your var declarations like this example:

typealias AttributedString = SwiftRichString.AttributedString
var appointmentDate : AttributedString?

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