Swift Tutorial - Extension (Swift protocol extension and Swift struct extension)

Опубликовано: 06 Октябрь 2024
на канале: Swift Goose
2,200
70

In this Swift 5.5 tutorial we'll look at Swift extension and how to do protocol extension and struct extension. Extensions in Swift can take some time to get used to, but are incredibly useful. Swift extensions allow you to, well, extend functionality of types. You can extend an Int, String, Double, a class, a struct, a protocol, etc. Very useful for adding your own functionality and keeping your code clean.

Subscribe for more content, as I will be creating more tutorial and how-to videos for coding in Swift, as well as longer tutorials on building macOS apps.

If you'd like to support my work to help me improve video quality and bring more content, please consider donating to my PayPal:
https://www.paypal.com/paypalme/Swift...

Thank you for watching!

Huge thank you to the channels below for helping me get started!
Uncreated Light Press
   / @uncreatedlightpress4142  
and

Mr. Macintosh
   / @mr.macintosh  
and

The Apple Ninja
   / appleninja