out line swift 3

func createAttributedString(string: String,size:CGFloat) -> NSMutableAttributedString {
let font = UIFont(name: "Futura-Medium", size: size)
let textAttributes = [
NSFontAttributeName : font!,
// Note: SKColor.whiteColor().CGColor breaks this
NSForegroundColorAttributeName: UIColor.white,
NSStrokeColorAttributeName: UIColor.black,
// Note: Use negative value here if you want foreground color to show
NSStrokeWidthAttributeName: -3
] as [String : Any]
return NSMutableAttributedString(string: string , attributes: textAttributes)
}