How to handle Views that display and modify elements from an array in Swift/SwiftUI/MVVM
Pretty basic question, I have professional dev experience but brand new to Swift and still figuring out its design patterns and such. I’ve been working through the Stanford course. The first couple assignments surround making a card game, and I’m trying to make the architecture make sense.
How to handle Views that display and modify elements from an array in Swift/SwiftUI/MVVM
Pretty basic question, I have professional dev experience but brand new to Swift and still figuring out its design patterns and such. I’ve been working through the Stanford course. The first couple assignments surround making a card game, and I’m trying to make the architecture make sense.
Proper way to use task in SwiftUI
I have recently started using SwiftUI and have build up a simple app that fetches data from a web service. I have following code in my View
Trigger a function when interacting with a navigation link
What i’m trying to achieve: I interact with a row in a list, this triggers an API
call to retrieve data using some ID
, and then navigate to the new view with said data. How do I do this?