Visual components

There are many different types of visual components which can be added. Let's see the default building blocks, which we can use when developing an iOS app:

  • Label: Control to present a static text
  • Button: Regular button, which handles touch interactions
  • Segmented Control: Several buttons next to each other, but only one can be active at a time
  • Text Field: Displays editable text and handles all interaction with the control
  • Slider: Selects easily a single value from a range
  • Switch: On or off switch, easily toggled
  • Spinner/Activity Indicator View: Indefinite progress view
  • Progress View: Presents the progress of a task over time
  • Page Control: Displays dots for each page for easy navigation through pages

The next screenshot ...

Get Learn Swift by Building Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.