The NSAttributedString(string:attributes:) constructor has been updated with generics in Swift 2.0 so that the attributes parameter is of the type [String : AnyObject]?
However, this means that the following code doesn't work anymore:
let font = CTFontCreateWithName("Monaco", 10, nil)
let string = NSAttributedString(string: "foo", attributes: [kCTFontAttributeName : font])
The problem here is that kCTFontAttributeName has the type CFString, which is not automatically bridged to String, even though it's going to be immediately converted back to a CFString.
The workaround is to convert it manually:
let font = CTFontCreateWithName("Monaco", 10, nil)
let string = NSAttributedString(string: "foo", attributes: [String(kCTFontAttributeName) : font])