在
Swift中创建私有常量时,可以在类中声明它们,
final class SomeClass: NSObject { private let someFloat:CGFloat = 12 }
以及课外.
private let someFloat:CGFloat = 12 final class SomeClass: NSObject { }