I get a compiler error. "Class methods can only be declared for type." I'm not sure why I understand that this is honest. All answers apply to another senario. Any suggestions are welcome.
class func fontWithSize(var size : CGFloat) -> UIFont { let font : UIFont = UIFont (name: "Roboto-Regular", size: size)! return font; }
ios compiler-warnings swift
user3606054
source share