I am trying to instantiate an instance of UIFont but I am not getting it to work. The following definition is available when looking up the type in Fire it suggests:
public init( fontName: NSString!, size fontSize: CGFloat)
so I tried:
UIFont("Pacifico-Regular", size: CGFloat(32.0))
but then I am getting the error when trying to build the app:
E: Parameter labels case mismatch. Parameter 1 is labeled "" but should should be "" in call to "init(with fontName: NSString!, size fontSize: CGFloat) -> UIFont?" [/Users/weyertdeboer/Development/Projects/Experiments/EntitlementsApp/RootViewController.swift (19)]
if I then update the code to what the compiler is suggesting it compiles successfully:
UIFont(with: "Pacifico-Regular", size: CGFloat(32.0))
Fire: build 2629