iOS Development | Intro to Property Wrappers in SWIFT



iOS Development | Intro to Property Wrappers in SWIFT

iOS Development | Intro to Property Wrappers in SWIFT

Ever wonder what the “@” symbol means in Swift 5?? Well, it’s a property wrapper! In this video, we will go over the basics of properties including:
Stored Properties
Computed Propertied
Getters and Setters
Property Observers including willSet {} & didSet{}
and finally Property Wrappers!

Property wrappers are an excellent tool to use in place of dependency injections as they create a layer of separation between code that manages how property is stored and the code that defines a property. PropertyWrappers are huge in SwiftUI, so be sure to understand the concept before you dive into the new language.

If this video was useful, please subscribe to my channel and comment below with what kind of content you’d like to see!

Watch how to SAFELY unwrap optionals:
https://youtu.be/HntTRJHtLtA

Please subscribe to my channel to see more videos: https://www.youtube.com/channel/UCDVhE78IGZnRv9qUg8k34Yw/?sub_confirmation=1

Swift Basics:
https://www.youtube.com/playlist?list=PLw-PoHLl-gD52f5SY7uZMTkGkSSYEXVV9

Xcode Tips:
https://www.youtube.com/playlist?list=PLw-PoHLl-gD7Xg0YN_9SM0LtBqIvJgzL0

Instagram: https://www.instagram.com/swiftlyshivali/

Comments are closed.