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
This is solved elegantly in Swift 5.1 you can access it via
Self.yourConstant
Reference: https://github.com/apple/swift-evolution/blob/master/proposals/0068-universal-self.md