Swift Tutorial: How to create and use extension in swift ( Email validation example)

Опубликовано: 01 Январь 2019
на канале: Swift Tutorials
1,284
22

In this video, we will learn how to create extension for string class in swift. Extension in swift allows developer to add their code to already existed classes, example String, UIView, UIButton etc.
In this video, we will add function to String class that validates an email address i.e. will return true if email id is in correct format otherwise will return false. We will add valid email function to string class using extension feature of swift language and then use that extended function in our code.


Смотрите видео Swift Tutorial: How to create and use extension in swift ( Email validation example) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Swift Tutorials 01 Январь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,284 раз и оно понравилось 22 людям.