zhangfurun
'AttributedString' is ambiguous for type lookup in this context <img width="876" alt="截屏2021-09-22 下午1 21 50" src="https://user-images.githubusercontent.com/16497944/134287565-1ce8cdab-795d-4b8b-a464-7ad4198b5e70.png">
#135 · open · 2 comments
'AttributedString' is ambiguous for type lookup in this context <img width="876" alt="截屏2021-09-22 下午1 21 50" src="https://user-images.githubusercontent.com/16497944/134287565-1ce8cdab-795d-4b8b-a464-7ad4198b5e70.png">
One workaround is to change NSAttributedString to NSMutableAttributedString.
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? ```