filmov
tv
Introduction To Protocols | Swift Language Basics

Показать описание
Today we go over an introduction to Swift protocols, how they work, and why they are so powerful, using Swift 4. First we go over the general structure of creating a protocol that other objects can conform to. Next, we dive into the different types of members that you might add to your protocol. Lastly, we cover how protocols can be a powerful solution to the problems in your code.
Apple itself has stated that Swift is meant to be a protocol oriented programming language. Once you can grasp the usefulness of Swift protocols, you'll be able to see how they can solve your coding problems and will probably change the way you write your code in general. Lastly, you'll have a full understanding of the composition of a protocol.
Some othe points that get covered are Swift Declare Class Func in Protocol, Why must a protocol operator be implemented as a global function, Is this a correct use of using protocols and delegate pattern in Swift, how to create delegates in swift, Usage of protocols as array types and function parameters in swift.
See what's next on the schedule by checking out my Trello board:
The finished project is available to any students of the free YouTube On my website. Make sure you enroll today:
If you have any questions or comments about the tutorial, or want to suggest a video to make, feel free to leave a comment below, or reach out to me on Twitter:
If you found this tutorial helpful, make sure to subscribe to the channel for more great tutorials.
Apple itself has stated that Swift is meant to be a protocol oriented programming language. Once you can grasp the usefulness of Swift protocols, you'll be able to see how they can solve your coding problems and will probably change the way you write your code in general. Lastly, you'll have a full understanding of the composition of a protocol.
Some othe points that get covered are Swift Declare Class Func in Protocol, Why must a protocol operator be implemented as a global function, Is this a correct use of using protocols and delegate pattern in Swift, how to create delegates in swift, Usage of protocols as array types and function parameters in swift.
See what's next on the schedule by checking out my Trello board:
The finished project is available to any students of the free YouTube On my website. Make sure you enroll today:
If you have any questions or comments about the tutorial, or want to suggest a video to make, feel free to leave a comment below, or reach out to me on Twitter:
If you found this tutorial helpful, make sure to subscribe to the channel for more great tutorials.
Комментарии