UIFont error in Xcode beta 7.3 (7D162j)?

Viewed 176

When compiling my project in the latest Xcode beta I get the following error.

enter image description here

The line of code that causes it is this:

let font = UIFont(name: "OpenSans-Semibold", size: 10.0)

I am not sure how to fix this.

Any idea?

So here's more context:

private lazy var view: UIView = {
        let view = UIView(frame: CGRectMake(0, 0, 34, 80))
        let label = UILabel()
        label.translatesAutoresizingMaskIntoConstraints = false
        let font = UIFont(name: "OpenSans-Semibold", size: 10.0)
        label.font = font
        return view
    }()
1 Answers
Related