Udemy

MV Design Pattern in iOS - Build SwiftUI Apps Apple's Way

立即報名
  • 1,919 名學生
  • 更新於 4/2024
4.5
(262 個評分)
CTgoodjobs 嚴選優質課程,為職場人士提升競爭力。透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期
全年招生
課程級別
學習模式
修業期
6 小時 55 分鐘
教學語言
英語
授課導師
Mohammad Azam
評分
4.5
(262 個評分)
2次瀏覽

課程簡介

MV Design Pattern in iOS - Build SwiftUI Apps Apple's Way

Harness the power of SwiftUI framework and start building amazing apps!

MVVM is the default pattern when building SwiftUI applications. I have been personally using the MVVM pattern since the inception of SwiftUI in 2019.


After building hundreds of demos and prototypes, I started to notice issues with using MVVM patterns for SwiftUI applications. These issues resulted in adding needless complexity and constantly fighting the SwiftUI framework.


In this course, I will explain a different pattern for building SwiftUI apps. This pattern is used by Apple to build their SwiftUI applications. The pattern is called the MV pattern, where M stands for Model and V is for View.


Let’s check out the contents of the course:


Understanding MV Pattern


In this section you will learn the thinking behind the MV pattern and how it is different from the MVVM pattern. We will compare SwiftUI with WPF and conclude that in SwiftUI, the View is also the View Model.


Validation


In this section, you will learn how to perform validation using MV pattern. These validation techniques are inspired from the React framework. You will learn how to perform simple validation, inline validation and even validation summary.


Coffee Order - [Project Time]


In this section, you will be building a complete Coffee Ordering application integrated with a JSON API. You will learn how to create an aggregate root model and webservice layer, which allows the app to consume and present data. You will also learn how to write end-to-end tests for your application.



Budget App - [Project Time]


In this section, you will learn how to build a SwiftUI app using MV pattern, which uses Core Data to persist information on the device. You will learn to use property wrappers including @FetchRequest and @Environment, which makes working with Core Data a breeze.



Who is this course for?


  • Developers who wants to learn Apple’s way of building SwiftUI applications

  • Developers who wants to stop fighting the SwiftUI framework and start building iOS apps

  • Developers who wants to start using all the power and flexibility provided by the SwiftUI framework

  • Developers who wants to write less code to achieve more


This course will serve as an eye opener to many developers and will provide a lot of information on a different and easier way for building SwiftUI applications.


After this course, you will be ready to start building your apps using the MV pattern.


Let’s get started.


課程章節

  • 10 個章節
  • 56 堂課
  • 第 1 章 Introduction
  • 第 2 章 Understanding MV Pattern
  • 第 3 章 Validation
  • 第 4 章 Coffee Order App - Getting Started and Displaying Orders
  • 第 5 章 Coffee Order App - End to End Testing and Adding New Coffee Orders
  • 第 6 章 Coffee Order App - Updating and Deleting Orders
  • 第 7 章 Budget App - Setting Up Core Data and Adding Budget Categories
  • 第 8 章 Budget App - Adding Transactions
  • 第 9 章 Budget App - Editing Budget Categories and Deleting Transactions
  • 第 10 章 Conclusion

課程內容

  • Writing SwiftUI apps using MV pattern
  • Learn to build SwiftUI apps based on Apple's recommendations
  • Learn how MVVM might be adding unnecessary code to your SwiftUI apps
  • Learn to write end-to-end tests for your application
  • Apply MV pattern for client/server applications
  • Learn to build Core Data apps and @FetchRequest and @Environment property wrappers


評價

  • D
    D.P. Coder
    5.0

    I really enjoyed the course — it gave me a lot of new insights, especially in terms of architecture and design approaches. I’m still learning how to build apps. I’ve created a simple training app and am now working on a more complex one. In both projects, I initially tried to follow the MVVM pattern, since it’s mentioned in almost every tutorial on YouTube. My usual process is to write all the logic in the View first, and then gradually move it into a ViewModel. Over time, I started running into limitations: property wrappers don’t work in ViewModels, and I often had to write a lot of boilerplate code or use workarounds that didn’t feel elegant. This led me to explore other architectural patterns, and that’s how I discovered the MV approach, which felt much more logical and flexible for my use case. The only thing I still find challenging is testing. UI tests aren’t always predictable, which was also apparent in the testing lessons from this course. I can definitely recommend this course to beginners, as well as to those who don’t want to overengineer simple features just because they chose MVVM.

  • P
    Paulo Pimentel
    4.0

    The course is good, but I give 4 stars for the missing parts and video that made difficult to follow the course.

  • A
    Anonymized User
    3.0

    The view logic in the View not the same with the MVVM so we can't make the UT for this, instead of we make the UI test for this. I think it's not better.

  • C
    Christopher Selin
    4.0

    As mentioned by others there is a backend piece that isn't covered by the lecture. I was able to get by using the instructor's existing endpoints, but that obviously isn't scalable. Otherwise, it was a solid course where each section added value.

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策使用條款才繼續瀏覽。

我已閱讀及同意