UNLOCK the Power of GENERICS in SwiftUI | Write Cleaner & Smarter Code

  Рет қаралды 1,449

AppStuff

AppStuff

Күн бұрын

In this video we implement generics using a real word example to create more flexible, reusable code that behaves better at scale.
Starter Project Download:
drive.google.c...
🔴 Become a member
stephancodes.c...
🔴 Pro Courses
stephancodes.c...
🔴 Instagram Pro Plus (PROPLUS10 for 10% off)
checkout.teach...
Arrange Dating App:
www.getarrange...
🖥️ FREE COURSES
Tinder Clone
• 🔴 Let's Build Tinder w...
TikTok Clone
• 🔴 NEW SwiftUI TikTok C...
Instagram Clone
• 🔴 Build Instagram With...

Пікірлер: 16
@vayu3528
@vayu3528 22 күн бұрын
Wow bro this one was great! I'd love to see how generics could be used to refactor architecture on the view model and service level
@twizzlestix9309
@twizzlestix9309 14 күн бұрын
Awesome! Super helpful and well explained.
@danielcrompton7818
@danielcrompton7818 24 күн бұрын
Hey Stefan, awesome topic and thanks so much! Generics are so powerful and awesome, allowing you to use your types and functions with any type. Please consider a video on reverse generics (opaque types ie some keyword) as none of the videos I have seen are helpful. I’d recommend this video idea 😊
@brodyroberts3298
@brodyroberts3298 16 күн бұрын
Shoutout to the goat himself
@appstuff
@appstuff 16 күн бұрын
🐐🐐
@julestburt
@julestburt 24 күн бұрын
Great intro to generics! Thx for sharing. I played around with this idea for some time before I came upon a more complete solution going a little deeper, where I didn't have to pass in all cases or deal with the array. I knew it was possible - but took me a couple of days thinking about it. Also, I'm not sure why exactly you are using Int, and CustomStringConvertible for this case of list of String selections? Anyway hope this adds to your viewers exploration. Watching from North Vancouver, Canada! :-) Regards, Jules.
@appstuff
@appstuff 23 күн бұрын
Nice! I have a habit of using Int with enums because I like the flexibility it offers when storing data in a backend. When you use strings, changing the spelling of an enum case in your backend would cause a decode failure in your front end unless you modify the code. I think integers just offer more flexibility overall
@julestburt
@julestburt 23 күн бұрын
@@appstuff Ah thx - that makes perfect sense, appreciate the knowledge share!!
@jaledjara9292
@jaledjara9292 24 күн бұрын
App Stuff. Hey Stephan when is going to be available de Instagram Pro Plus?
@appstuff
@appstuff 23 күн бұрын
Instagram Pro Plus is available now! Go to the courses section of the website and you will find it there
@jaledjara9292
@jaledjara9292 23 күн бұрын
@ i have the lifetime an i cannot see the course… why???
@737aiart
@737aiart 24 күн бұрын
subscribed
@iosdalluworld1387
@iosdalluworld1387 23 күн бұрын
Please create a video for CICD Pipeline and also network layer for large scale app
@appstuff
@appstuff 19 күн бұрын
I’m working on a developer tools course that will involve CI/CD with fastlane and GitHub integration
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Kotlin Code Reuse: Composing like you're Inheriting
14:42
Dave Leeds
Рет қаралды 12 М.
Binding vs. Bindable in SwiftUI on iOS 17
13:12
donny wals
Рет қаралды 12 М.
Swift Concurrency | Understanding Actors
11:19
AppStuff
Рет қаралды 1,4 М.
5 AMAZING NEW Scroll View Features with iOS 18 You NEED TO KNOW
17:13
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 66 М.
Avoid These 5 Common Beginner SwiftUI Mistakes
7:57
CodeWithChris
Рет қаралды 3,7 М.
Stop Using ZStack in SwiftUI
9:23
Flo writes Code
Рет қаралды 3,1 М.
Add Custom Fonts to Your iOS App | SwiftUI
14:10
AppStuff
Рет қаралды 776
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН