MV Design Pattern in iOS – Build SwiftUI Apps Apple’s Way

00951cbe_medium

MVVM 是构建 SwiftUI 应用程序时的默认模式。自 2019 年 SwiftUI 诞生以来,我个人一直在使用 MVVM 模式。

在构建了数百个演示和原型之后,我开始注意到将 MVVM 模式用于 SwiftUI 应用程序的问题。这些问题导致增加了不必要的复杂性并不断与 SwiftUI 框架作斗争。

在本课程中,我将解释构建 SwiftUI 应用程序的不同模式。Apple 使用这种模式来构建他们的 SwiftUI 应用程序。该模式称为 MV 模式,其中 M 代表 Model,V 代表 View。

让我们看看课程的内容:

了解 MV 模式

在本节中,您将了解 MV 模式背后的思想以及它与 MVVM 模式的不同之处。我们将 SwiftUI 与 WPF 进行比较,并得出结论,在 SwiftUI 中,View 也是 View Model。

验证

在本节中,您将学习如何使用 MV 模式执行验证。这些验证技术的灵感来自 React 框架。您将学习如何执行简单验证、内联验证甚至验证摘要。

咖啡订单 – [项目时间]

在本节中,您将构建一个与 JSON API 集成的完整咖啡订购应用程序。您将学习如何创建聚合根模型和 Web 服务层,以允许应用使用和呈现数据。您还将学习如何为您的应用程序编写端到端测试。

预算应用程序 – [项目时间]

在本节中,您将学习如何使用 MV 模式构建 SwiftUI 应用程序,该模式使用 Core Data 将信息持久保存在设备上。您将学习使用包括@FetchRequest 和@Environment 在内的属性包装器,这使得使用Core Data 变得轻而易举。

这门课程是为谁准备的?

想要学习 Apple 构建 SwiftUI 应用程序的
开发人员想要停止与 SwiftUI 框架抗争并开始构建 iOS 应用程序的
开发人员想要开始使用 SwiftUI 框架提供的所有功能和灵活性的
开发人员想要编写更少的代码来实现更多的

本课程将使许多开发人员大开眼界,并将提供大量有关构建 SwiftUI 应用程序的不同且更简单的方法的信息。

在本课程之后,您将准备好开始使用 MV 模式构建您的应用程序。

让我们开始吧。

本课程适用对象:
想要学习如何使用 MV 模式构建 SwiftUI 应用程序的
开发人员想要学习如何 Apple 构建他们的 SwiftUI 应用程序的
开发人员想要停止与 SwiftUI 框架作斗争并开始提高生产力的开发人员

MV Design Pattern in iOS – Build SwiftUI Apps Apple’s Way
Duration: 6h 56m | .MP4 1280×720, 30 fps(r) | AAC, 44100 Hz, 2ch | 2.87 GB
Genre: eLearning | Language: English

Stop fighting the SwiftUI framework and start building amazing apps!

What you’ll learn:
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

Requirements:
Knowledge of SwiftUI framework is required
Knowledge of Swift language is required
Understanding of MVVM pattern is recommended
Xcode
Mac

Description:
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.

Who this course is for:
Developers who wants to learn how to build SwiftUI apps using MV pattern
Developers who wants to learn how to Apple constructs their SwiftUI applications
Developers who wants to stop fighting the SwiftUI framework and start being productive

资源下载此资源仅限VIP下载,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/37246.html

赞 (0)
steven的头像steven
上一篇 2022年9月21日
下一篇 2022年9月21日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部