How to create and use enums - Swift for Complete Beginners

Поделиться
HTML-код
  • Опубликовано: 1 окт 2021
  • Other videos in the Complex Data section:
    1. How to store ordered data in arrays: • How to store ordered d...
    2. How to store and find data in dictionaries: • How to store and find ...
    3. How to use sets for fast data lookup: • How to use sets for fa...
    4. How to create and use enums: This video
    5. How to use type annotations: • How to use type annota...
    6. Summary: Complex data: • Summary: Complex data ...
    7. Checkpoint 2: • Checkpoint 2 - Swift f...
    You can find the full set of videos, along with transcriptions, challenges, tests, and more, in my free 100 Days of SwiftUI course: www.hackingwithswift.com/100/...
    Watch the full Swift for Complete Beginners playlist here: • Swift for Complete Beg...
  • НаукаНаука

Комментарии • 9

  • @Al-Mizal
    @Al-Mizal 2 года назад +12

    Dear Paul, would you kindly compile the videos in a chronologically ordered playlist ? Thank you for this tremendous educational work!

    • @twostraws
      @twostraws  2 года назад +3

      I'll see what I can do - thanks for the suggestion!

  • @FelipeCampelo0
    @FelipeCampelo0 10 месяцев назад

    Wholesome work mate! Perfect didactic!

  • @user-tq3zn1wm1k
    @user-tq3zn1wm1k Год назад

    Nice Lesson, Paul!

  • @vp8724
    @vp8724 8 месяцев назад

    Hi Paul. I were wondering why the heck enum is there until I watch your video. You exactly told practical use of it. Thank you. I saw other videos where everything was told about enum with type, without type, function within it but none of them given practical use of it In real life. Thank you again.

    • @Art-is-craft
      @Art-is-craft 4 месяца назад

      One of the main problems many software engineers have today is that they do not have a good grounding in data design for programming. They rely too much on inbuilt modular functions within a language.

  • @nightwolf5887
    @nightwolf5887 2 года назад +1

    Thank you Paul! How would you implement this if you are utilizing a struct/class and want to be able to select multiple days from the enum?
    For example, if you open the system clock app and add an alarm...you can select the days of the week you want the alarm to occur.
    Thanks!

  • @gjermundification
    @gjermundification Год назад +1

    How can I create enums programmatically? I use enums as `cat data.txt | sort | uniq` where data.txt contains one or more values, and I only need their unques.
    data.txt
    Sunday
    Monday
    Tuesday
    Monday
    Wednesday
    Monday
    Thursday
    Friday
    Friday
    Friday
    Friday
    Saturday
    Monday
    Monday
    For simpler enums I have XSLT tooling in place, however for enums based on dynamic data such as current unique data from CoreData, PostgreSQL, FileMaker, Sherlock( or whatever it is named in 2023, ) or data from within Swift arrays

  • @jonothen2212
    @jonothen2212 Год назад

    Clear and concise ser
    Thank you for the vid