Swift Tutorial: Introducing Structures

Learn about structures, a fundamental compound type in Swift that let you define your own types – complete with data and actions! By Erik Kerber.

Leave a rating/review
Save for later
Share
You are currently viewing page 3 of 3 of this article. Click here to view the first page.

Where To Go From Here?

Structs are just one of the named types available to you in Swift, and now that you understand struct basics you're ready to learn about their reference type counterparts: classes!

If you like what you see, we also cover enums and protocols and So Much More! in the book. These named types are what you'll use to define the things specific to your apps—people, windows, in-app purchases, and so on—and are an important part of learning Swift.

This post is an excerpt from the Swift Apprentice. Pick up a copy of the book if you’d like to learn more about Swift right from the foundations.

If you have any questions or comments on this tutorial, please join the forum discussion below!

Erik Kerber

Contributors

Erik Kerber

Author

Over 300 content creators. Join our team.