How to use async/await + SwiftUI + MVVM + API Call (URLSession) + Swift in Xcode-15 (iOS Dev)
ฝัง
- เผยแพร่เมื่อ 19 เม.ย. 2024
- Async/await + SwiftUI + MVVM + API Call (URLSession) + Swift + Xcode-15 + iOS Development
Please subscribe my channel for more contents.
LinkedIn: / dev-iayush27
Instagram: / xcoder.ayush27
GitHub: github.com/dev-iayush27/Async...
~ Keep Learning & Happy Coding ~
Thanks for watching!
#ios #iosdev #iosdeveloper #iosdevelopment #swiftui #swiftuitutorial #swifttutorial #appdevelopment #swiftprogramming #iosappdevelopment #iosdevelopers #iosengineer #code #coder #coding #ui #softwaredevelopment #softwareengineering #softwareengineer #softwaredeveloper - วิทยาศาสตร์และเทคโนโลยี
My first time using an API. This video was thorough and covered just enough to get me started. Thank you.
Cool explanation, ill subscribe for more of your content
why you used observed object?
Vete good video!! Thanks!!! 🥰
Thanks for watching!
This method (async/await) or file structure or syntax is production ready or only for learning purpose (guide me), nice explanation , good video 👍👍
is AsyncImage supporting caching ? because if it's not, then that is useless...Imagine having 500 + heavy images downloading all the time when you go up and down
Thanks for your comment.
No, it does not support caching. AsyncImage only loads the image from external URL. We have to handle cache part additionally or can use third party library.
Please don't whisper into the microphone, this is not an ASMR video!
😂
use earphone bro
What is the exact part of your code that forced you to use @MainActor? I do not understand why you had tu use it in this case. (I am learning Swift), Thanks!
It's all about the published property of UserModels to update the UI. That would require main thread to handle in the UI end. You can approach it in a different way either.