This
NSAttributedString.Key.foregroundColor: view.tintColor
Triggers this warning
Exp
Just do this:
guard let viewTint = view.tintColor else { return } NSAttributedString.Key.foregroundColor: viewTint
Hope this helps!