Today we go over what the keyword typealias is used for, how implement in, and why you should incorporate it into your code., using Swift 4. First we go over how to create your very own typealias. Next, we dive into creating a typealias for your custom datamodels. Lastly, we go over how some frameworks use typealias to make their code more legible.
Legacy code can always be a challenge to manage and reimplement; especially when it is missing documentation. Although typealias isn't exactly documentation, it can really help you and others to understand exactly what is expected as a value for your properties and method arguments. In this tutorial, we go over how you can start implementing typealias into your code to make it more legible and reusable.
Some othe points that get covered are generic typealias in swift, swift typealias vs empty inheirited class, swift typealias without type.
See what's next on the schedule by checking out my Trello board:
https://trello.com/b/TNhRZsB2/kilo-lo...
The finished project is available to any students of the free YouTube On my website. Make sure you enroll today:
https://www.kiloloco.com/p/youtube
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:
/ kilo_loco
If you found this tutorial helpful, make sure to subscribe to the channel for more great tutorials.
Смотрите видео Typealias | Swift Language Basics | Swift 4, Xcode 9 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Kilo Loco 27 Февраль 2018. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,699 раз и оно понравилось 141 посетителям.