Xcode 8 beta 4 no longer recognizes Foundation class AttributedString
.
I've reproduced it in this simple playground example:
//: Playground - noun: a place where people can play
import Foundation
let attrStr1 = NSAttributedString()
let attrStr2 = AttributedString() // Use of undeclared type 'AttributedString'
Since AttributedString
was available in older Xcode 8 Swift 3 betas, I imagine this is a Foundation
bug that needs to be fixed, rather than some source code error in Playground?
NS
prefix. As there are too many things to remember now:Data
is a struct butNSData
is a class; same withURL
, etc. – Pudens