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... Наука
Dear Paul, would you kindly compile the videos in a chronologically ordered playlist ? Thank you for this tremendous educational work!
I'll see what I can do - thanks for the suggestion!
Wholesome work mate! Perfect didactic!
Nice Lesson, Paul!
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.
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.
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!
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
Clear and concise ser
Thank you for the vid