Saving Data in iOS

May 31 2022 · Swift 5.5, iOS 15, Xcode 13

Part 1: Files & Data

05. Data & Data Types

Episode complete

Play next episode

About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 04. Challenge: URLs Next episode: 06. Saving & Loading Data

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 05. Data & Data Types

Apple’s documentation on Numbers, Data, and Basic Values

This course was originally recorded in April 2020. It has been reviewed and all content and materials updated as of November 2021.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

In this video you’ll learn more about Swift data types, how to view the type of a variable or object you have, and how each data type uses different amounts of bytes in memory or on disk.

MemoryLayout.size(ofValue: age)
MemoryLayout.size(ofValue: height)
MemoryLayout.size(ofValue: weight)
MemoryLayout.size(ofValue: earthRadius)
MemoryLayout<UInt8>.size * favoriteBytes.count