Introduction to Swift 13 - Extensions

Introduction to Swift 13 - Extensions

Emmanuel Okwara

4 года назад

822 Просмотров

Today we go over the basics of Swift Extensions, how they work, and why they are so awesome.
First, we learn how to create an extension of a custom class.
Then we create an extension of a predefined class (Date) and implement a method to return the current date in a custom format.
Finally, we saw how to conform to a protocol using an extension

Below is a link to the website that gives a detailed explanation of the various date formats and their meanings
https://nsdateformatter.com

Тэги:

#swift #ios #programming #iosdeveloper #extensions #iosdevelopment
Ссылки и html тэги не поддерживаются


Комментарии: