Is ClassName.staticVaribale the only way to access static variable within the class? I want something like self, but for class. Like class.st
ClassName.staticVaribale
self
class.st
You could work around this by defining a self referencing typealias.
class MyClassWithALongName { typealias CLASS = MyClassWithALongName static let staticFoo = "foo" func someInstanceMethod() -> String { return CLASS.staticFoo } }
Though the style-guide gods may not approve.