MemoryLayout in Swift

How big is it?

Steven Curtis
7 min readJun 5, 2020

--

Photo by Fredy Jacob on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

Knowing how much memory something takes up in Swift is really important. We can find that out, but we need to know something about MemoryLayout — which is great, because that’s what this article is all about!

Prerequisites:

  • Be able to produce a “Hello, World!” iOS…

--

--