Swift offers a collection of built-in data types. Its data types are a string, an integer, floating-point numbers, and Booleans. These data types are found in most programming languages. Therefore, if you are not new to programming, you can skip this section and start at the Variables and constants – where data is held section later.
Let's walk through each data type for those of you who are new to programming or would like a refresher.