Swift Type Methods
You can also define methods that are called on the type itself. These kinds of methods are called type methods.
You indicate type methods by writing the static keyword before the method’s func keyword. Classes may also use the class keyword to allow subclasses to override the superclass’s implementation of that method.
Type methods are called with dot syntax, like instance methods. However, you call type methods on the type, not on an instance of that type.
Type methods does not require creating instance first to be called. Here’s how you can call a type method.