🧰UIKit Handbook

Original Author: Richie Sun

UIView

An object that manages the content for a rectangular area on the screen. The UIView class defines the behaviors that are common to all views. All following UI elements are a subclass of UIView

let view = UIView()

All UIViews share the following attributes:

Text-Based Views

The following views are utilized for displaying text in your views. Whether that be for titles, headers, descriptions, or input text boxes.

All of the views in this section shared the following attributes:

UILabel

A view that displays one or more lines of informational text. Most commonly used to display titles, headers, or short lines of text that are NOT scrollable.

let label = UILabel()

Unique attributes:

UITextField

An object that displays an editable text area in your interface. Most commonly used to obtain shorter text input from users, as the textField area is NOT scrollable nor multiline

let textField = UITextField()

Unique attributes:

UITextView

A scrollable, multiline text region.

let textView = UITextView()

Unique attributes:

More Views Coming Soon!

Last updated