Back to Browse

Protocols in Swift: Methods, Initializers & extensions

1.6K views
Premiered Mar 18, 2021
10:34

Hello guys, welcome to another video!. In this part two, we will talk about method and initializer requirements for protocols, along with how we can conform a protocol by an extension. This video assumes that you already watched the first part, if you haven't watched it, check the link below: Part 1: https://youtu.be/80Qma2hUyUk SoccerPlayer code: https://gist.github.com/pitt500/13634029f657ab9b0de6cef41b55ebd2 Content: 0:00 - Intro 0:05 - Method requirements 5:37 - Initializer requirements 7:13 - Conforming a protocol by an extension 9:55 - Outro ------ References: - https://docs.swift.org/swift-book/LanguageGuide/Protocols.html Source code showed in the series: https://github.com/pitt500/swift-and-tips/blob/main/Protocols/ProtocolsDemo.playground/Contents.swift ------ Other videos in the channel: - State management in SwiftUI: https://youtube.com/playlist?list=PLHWvYoDHvsOWcOjBdPoMGCvX_7X9U14Qo - UIKit in SwiftUI: https://youtube.com/playlist?list=PLHWvYoDHvsOX8vB95YIkv_r5e5IXWcyu2 - Struct vs Classes: https://youtu.be/zOeC7pxOIhk ----- Don't forget to subscribe to the channel, like it, and follow me on social media: Twitter: https://twitter.com/swiftandtips https://twitter.com/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

Download

0 formats

No download links available.

Protocols in Swift: Methods, Initializers & extensions | NatokHD