Declaring and initializing UIFont

suggest change

You can declare a UIFont as follows:

var font: UIFont!

UIFont has more init() methods:

Therefore, you can initialize a UIFont like this:

let font = UIFont(name: "Helvetica Neue", size: 15)

The default font is System, size 17.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents