Open zhangfurun opened 2 years ago
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?
'AttributedString' is ambiguous for type lookup in this context