I\'m following an online tutorial to build a magazine type iOS application. I\'m attempting to use NSAttributedStringKey but keep getting the error shown below. Any ideas?>
You are trying to use an iOS 11 API on a pre-iOS 11 version (likely iOS 10). Surprised that you found a tutorial already using beta features!
In the meantime, try this.
let attrs = [NSForegroundColorAttributeName: color, NSFontAttributeName: font]
and that should work.