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

Скачать или смотреть How to iterate over the cases of an enum in Swift using CaseIterable

  • Vincent Pradeilles
  • 2023-02-14
  • 1490
How to iterate over the cases of an enum in Swift using CaseIterable
DevelopmentiOSXcodeProgrammingCodingSwiftSean AllenPaul HudsoniOS AcademyCodeWithChrisLets Build That AppJohn Sundell
  • ok logo

Скачать How to iterate over the cases of an enum in Swift using CaseIterable бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно How to iterate over the cases of an enum in Swift using CaseIterable или посмотреть видео с ютуба в максимальном доступном качестве.

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

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

Cкачать музыку How to iterate over the cases of an enum in Swift using CaseIterable бесплатно в формате MP3:

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

Описание к видео How to iterate over the cases of an enum in Swift using CaseIterable

#iOS #swift #softwaredeveloper #iosdeveloper

In this video, I'll explain what the protocol CaseIterable is in Swift. CaseIterable is a protocol in Swift that makes it easy to work with enums that have a finite number of cases. By adopting the CaseIterable protocol, an enum gains a static allCases property that returns an array of all of the enum's cases. This can be useful for a variety of tasks, such as populating a user interface element with the enum's values or iterating over all of the enum's cases to perform a task.

Thank you for watching this video 🙌

➜ Website: https://www.swiftwithvincent.com
➜ Twitter:   / v_pradeilles  
➜ GitHub: https://github.com/vincent-pradeilles/
➜ LinkedIn:   / vincentpradeilles  

TRANSCRIPT
Have you ever heard of the protocol CaseIterable? When you use enums, this protocol can be very useful. Let's take the example of this simple enum. If we make this enum conform to the protocol CaseIterable, then the compiler will automatically generate a static property called all cases, which is an array that contains all the cases of this enum.
And that's a pretty cool addition which can be very useful typically to write tests that cover each possible case. That's all for this video, I hope you've enjoyed it. Remember to subscribe to the channel so you don't miss the next one. Thank you for watching, and see you next time!

Комментарии

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

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

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

video2dn Copyright © 2023 - 2025

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