Typealias | Swift Language Basics | Swift 4, Xcode 9

Published: 27 February 2018
on channel: Kilo Loco
2,699
141

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.


Watch video Typealias | Swift Language Basics | Swift 4, Xcode 9 online without registration, duration hours minute second in high quality. This video was added by user Kilo Loco 27 February 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,699 once and liked it 141 people.