Why does Apple push for structs?
<p>From the very creation of the Swift language, Apple has pushed for developers to use structs frequently. Apple has an <a href="https://docs.swift.org/swift-book/LanguageGuide/ClassesAndStructures.html" rel="noopener ugc nofollow" target="_blank">article</a> where they state:</p>
<blockquote>
<p>“The additional capabilities that classes support come at the cost of increased complexity. As a general guideline, prefer structures because they’re easier to reason about, and use classes when they’re appropriate or necessary. In practice, this means most of the custom data types you define will be structures and enumerations.”</p>
</blockquote>
<p>In this article, I’d like to go over the main reasons why Apple recommends this.</p>
<p><a href="https://medium.com/@paulwall_21/why-does-apple-push-for-structs-e511e8c8124e"><strong>Learn More</strong></a></p>