Is it possible to define a class function in an extension in swift, just like in an objective-C category you can also define class functions?
Example in objective-c
@implementation UIColor (Additions)
+ (UIColor)colorWithHexString:(NSString *)hexString
{
// create color from string
// ... some code
return newColor;
}
@end
what would be the equivalent in swift?