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

所在平台: Udemy

课程主页: https://www.udemy.com/course/mv-design-pattern-in-ios-for-swiftui/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** MV Design Pattern in iOS - Build SwiftUI Apps Apple's Way **课程概述:** 本课程旨在教授开发者一种新的 SwiftUI 应用开发模式——MV 模式,并指出其与 MVVM 模式的区别及优势。作者基于多年使用 MVVM 构建 iOS 应用的经验,发现 MVVM 在 SwiftUI 中存在一些问题,例如增加不必要的复杂性以及与 SwiftUI 框架的“对抗”。 MV 模式,即 Model-View 模式,是 Apple 构建 SwiftUI 应用所采用的模式。课程将深入探讨 MV 模式背后的设计理念,并将其与 MVVM 进行对比,强调在 SwiftUI 中 View 本身就可以充当 ViewModel 的角色。 **课程内容亮点:** * **理解 MV 模式:** 阐述 MV 模式的核心思想,对比 MVVM,并论证 SwiftUI 中 View 即 ViewModel 的概念。 * **验证机制:** 学习在 MV 模式下实现验证,包括简单验证、行内验证和验证摘要,灵感来源于 React 框架。 * **项目实践 - Coffee Order:** 构建一个完整的咖啡订单应用程序,集成 JSON API,学习创建聚合根模型、Web 服务层,并编写端到端测试。 * **项目实践 - Budget App:** 使用 Core Data 构建预算管理应用,展示如何利用 @FetchRequest 和 @Environment 等属性包装器简化 Core Data 操作。 **课程适合人群:** * 希望学习 Apple 官方 SwiftUI 开发方式的开发者。 * 希望摆脱 SwiftUI 框架“对抗”,更顺畅开发 iOS 应用的开发者。 * 希望充分发挥 SwiftUI 框架强大功能和灵活性的开发者。 * 追求用更少代码实现更多功能的开发者。 **课程价值:** 本课程将为开发者带来新的视角,展示一种更简单、更高效的 SwiftUI 应用构建方法,帮助开发者更好地掌握 SwiftUI 框架,并自信地使用 MV 模式进行开发。

课程评论(0条)

课程详情

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 PatternIn 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.ValidationIn 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 applicationsDevelopers who wants to stop fighting the SwiftUI framework and start building iOS appsDevelopers who wants to start using all the power and flexibility provided by the SwiftUI frameworkDevelopers who wants to write less code to achieve moreThis 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.

课程标签

0人关注该课程

主题相关的课程