Hello guys, welcome to another video!. We have talked recently about UIViewRepresentable, UIViewControllerRepresentable, and View in SwiftUI, all those are protocols. Let's take some time and explore what are protocols in Swift because is one of the core pieces in this language (and many others). We will create a short series of videos talking about the most important pieces you should know, and we will start answering "What are protocols?" and view the minimum requirement for it along with conforming protocol's properties for a concrete type.
Content:
0:00 - Intro
0:38 - What are protocols?
1:51 - The minimum requirement for a protocol
3:20 - Property Requirements
6:00 - Understanding protocol requirements
7:36 - Outro
------
References:
https://docs.swift.org/swift-book/Lan...
Source code showed in the video: https://github.com/pitt500/swift-and-...
------
Other videos in the channel:
State management in SwiftUI: • State Management in SwiftUI
UIKit in SwiftUI: • UIKit in SwiftUI
Struct vs Classes: • Structs vs classes in Swift
-----
Don't forget to subscribe to the channel, like it, and follow me on social media:
Twitter:
/ swiftandtips
/ pitt500
Finally, ask me for a video you would like to see next 😄!
Credits:
Music by Wataboi from https://pixabay.com/
Video edited with LumaFusion
Draws were done with NiBoard: https://apps.apple.com/us/app/niboard...