SwiftRichString
SwiftRichString copied to clipboard
Xcode 13 run bugs: 'AttributedString' is ambiguous for type lookup in this context
'AttributedString' is ambiguous for type lookup in this context
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?