dayLog
블로그 이미지

Home

Write

Setting

About Me

  • All (130)
    • Day (1)
    • Project (2)
      • Tistory skin 제작 (2)
    • Study (118)
      • Paper (3)
      • Algorithm (15)
      • Computer Security (11)
      • Computer Vision (10)
      • Coding and Information Theo.. (11)
      • Database (11)
      • Deep Learning (3)
      • Digital Image Processing (3)
      • Discrete Mathematics (3)
      • Entrepreneurship (1)
      • Machine Learning (17)
      • Network (6)
      • Operating System (12)
      • Real-Time Embedded System (7)
      • Reinforcement Learning (5)
    • 잡기술 (1)
      • Cloud (2)
      • Homomorphic Encryption (2)
      • 자격증 (0)
      • IOS (1)
      • 딥러닝 (1)
      • vscode (1)
Dark
MVVM 구조
MVVM = Model, View, View Model 1. Model데이터 저장 구조체이다. 크로스핏 운동 어플을 만든다고 가정하면,enum ExerciseType { case weighted(Double) // 무게가 필요한 경우 (kg 단위 등) case bodyweight // 무게가 필요 없는 경우}struct Exercise { let name: String let sets: Int let reps: Int let type: ExerciseType}struct WOD { let id: Int let name: String let exercises: [Exercise]}  2. View ModelView에서 사용하기 위해 Model..
2024.10.22
잡기술/IOS
Prev 1 Next
uTube· Designed By ushin20

티스토리툴바