I can\'t seem to find it in the docs, and I\'m wondering if it exists in native Swift. For example, I can call a class level function on an NSTimer like so:
You can define Type methods inside your class with:
class Foo {
class func Bar() -> String {
return "Bar"
}
}
Then access them from the class Name, i.e:
Foo.Bar()
In Swift 2.0 you can use the static keyword which will prevent subclasses from overriding the method. class will allow subclasses to override.