Overview

Conceptual overview of the architectural paradigm underlying the development of applications for iOS using SwiftUI: MVVM. In addition, a key underpinning of the Swift Programming Language, its type system, is explained. The Memorize demonstration continues, incorporating MVVM.

Watch Video
点击查看【bilibili】

Lecture

Lecture 2.pdf

Reading

reading1.pdf

Assignment

assignment1.pdf

Learning

image.png
View 是无状态的,但跟随 Model 变化,这不冲突吗? View 表现的像 Model,即响应式编程

  • Processes Intent 指用户的某种用户
    • image.png

image.png

  • 为什么 ViewModel 用 class ?
    • 它是共享的
  • swift 和 swiftUI 中,所有的变量都是有类型。
  • 闭包本质是内联函数,它做的更好,捕获变量
  • ViewMode is essentially a UI thing