I can't figure this out, referencing this post: Struggling with NSNumberFormatter in Swift for currency
I can't get a reference to NSNumberFormatter...i.e. I can't call any methods on formatter? (the below throws an error of expected declaration)
import Foundation
class CurrencyFormatter {
var price = 100
var formatter = NSNumberFormatter()
formatter.numberStyle = .CurrencyStyle
formatter.stringFromNumber(price)
}