Swift - Class vs. Struct Explained

Published: 28 January 2023
on channel: Sean Allen
33,590
1.3k

Go to https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

Classes vs. Structs is a classic iOS Developer Interview question. In this video I explain the difference between a reference type and a value type as well as when to use a struct or a class. This tutorial was created using Xcode 14 and iOS 16.

iOS Developer Interview Questions Playlist:
   • Swift Interview Tips  

My iOS Dev Courses:
https://seanallen.teachable.com/

Twitter:
Sean Allen -   / seanallen_dev  

Hired.com:
https://hired.com/x/1n01g

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson's Hacking With Swift:
https://gumroad.com/a/762098803

Donny Wals - Combine:
https://gumroad.com/a/909014131

Mark Moeyken’s SwiftUI Books:
www.bigmountainstudio.com/swiftui-views-book/fzc51

Objc.io Books (Thinking in SwiftUI & Advanced Swift):
https://gumroad.com/a/656585843

Ray Wenderlich Books:
https://store.raywenderlich.com/a/208...

#swift #softwaredeveloper #iosdeveloper

Timestamps:
0:00 - iOS Interview Question
0:21 - Short Answer - Reference vs. Value Types
0:48 - Class - Reference Type
2:35 - Struct - Value Type
4:18 - When to use Class or Struct


Watch video Swift - Class vs. Struct Explained online without registration, duration hours minute second in high quality. This video was added by user Sean Allen 28 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 33,590 once and liked it 1.3 thousand people.