Summary of My SwiftUI Async Await MVVM Project Structure & Approach (SwiftUI Async Await, async await Swift)

This is an AI generated summary. There may be inaccuracies.
Summarize another video · Purchase summarize.tech Premium

00:00:00 - 00:30:00

This video discusses the author's SwiftUI Async Await project structure and approach. They demonstrate how to use their async await feature to interact with a service, and how to use a task modifier to auto-generate a progress view while an API call is in progress.

  • 00:00:00 In this video, the author discusses how he structures his SwiftUI Async Await projects, and how he uses constants and enums to prevent users from creating instances of his enum types. He then goes on to discuss how he creates features for his app, and how he separates these features into their own folders.
  • 00:05:00 The author discusses the structure and approach to using SwiftUI's async await feature in a model-view-controller (MVC) project. He demonstrates how to create a dummy version of the model and how to preview the results in a user interface.
  • 00:10:00 In this video, the author explains how they structure their SwiftUI Async Await project using a model-view-controller (MVC) pattern. They then show how to use their async await feature to interact with a service.
  • 00:15:00 The video shows how to structure a SwiftUI Async Await project, and discusses how the protocol helps to to enforce the business logic. The view model is used to cache data and to perform other business logic not related to the API.
  • 00:20:00 The author of the video discusses his SwiftUI Async Await MVVM project structure and approach. He notes that, in his experience, it is often easy to forget to add observability to classes that use a protocol, and so he includes this in the protocol as a way of automatically taking advantage of the observable object feature. The author then writes a view model class that incorporates the service and uses the async await API to call the service's getrandomquotes() function. If the view model is to be unit tested, the author includes a constant for the quotes service's value in the class so that it cannot be changed by outside sources.
  • 00:25:00 The author provides a SwiftUI async await MVVM project structure and approach. This video covers how to use a state object to keep your view model alive, and how to use a task modifier to auto-generate a progress view while an API call is in progress.
  • 00:30:00 The author discusses how to structure their SwiftUI Async Await project, and how to create a loading view that displays text based on the fetching of quotes.

Copyright © 2025 Summarize, LLC. All rights reserved. · Terms of Service · Privacy Policy · As an Amazon Associate, summarize.tech earns from qualifying purchases.