I have a UIFont Class that looks like this:
struct FontHelper {
func defaultFont(size: CGFloat) -> UIFont {
return UIFont(name:"Helvetica", size: size)!
}
}
and I call the method like this"
let fonts = FontHelper.defaultFont(12)
However my app crashes with an unexpected found nil while wrapping optional?
Have no idea why?