Geek Culture
Published in

Geek Culture

Swift: Structs vs Classes

What are the differences? Which one should I prefer?

Photo by Joshua Aragon on Unsplash

In Swift, structures and classes are important building blocks. But how do you decide which one to use? What is the difference?

In short:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store