Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Why property Wrappers are so important in Swift?

  • Swift and Tips
  • 2021-05-16
  • 1123
Why property Wrappers are so important in Swift?
swift and tipsswift && tipsswiftandtipspitt500PittPedro RojasSwiftSwiftUIiosios developmentProperty WrapperswrappedValuedemostructcomputed propertiesSwift 5.1State managementStateStateObjectswiftlang
  • ok logo

Скачать Why property Wrappers are so important in Swift? бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Why property Wrappers are so important in Swift? или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Why property Wrappers are so important in Swift? бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Why property Wrappers are so important in Swift?

Hello guys, welcome to another video!

Some time ago we talked about State management in SwiftUI, we learned how to use @State, @StateObject, @ObservedObject, etc. All of them are property wrappers, and today, we would create our own property 🎉. Let's start from the basics and create a simple wrapper @Age to validate an Int value that represents the age of a user. In this video, we will talk in detail about wrappedValue, but we will see other features and limitations about property wrappers in the next video.

Let's get started! 😄

Content:
0:00 - Intro
1:48 - The problem that property wrappers solve
2:07 - The problem with ages
3:50 - Requirements for a property wrapper
5:55 - Initializing wrappedValue
8:25 - Validating initializer
10:07 - Transforming wrappedValue in a computed property
14:42 - Adding parameters to the property wrapper
17:02 - Outro

------
References:
https://docs.swift.org/swift-book/Lan...
https://docs.swift.org/swift-book/Ref...
https://github.com/apple/swift-evolut...
https://www.swiftbysundell.com/articl...
https://nshipster.com/propertywrapper/

Source code showed in the video (and an extra demo): https://github.com/pitt500/swift-and-...

------
Other videos in the channel:
State management in SwiftUI:    • State Management in SwiftUI  
UIKit in SwiftUI:    • UIKit in SwiftUI  
Generics:    • Generics  
The power of Combine:    • The power of Combine  

-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:
  / swiftandtips  
  / pitt500  

Finally, ask me for a video you would like to see next 😄!

Credits:
Music by Wataboi from https://pixabay.com/
Video edited with LumaFusion

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]