
SwiftUI是一种创新的,非常简单的方法,可以借助Swift跨所有Apple平台构建用户界面。仅使用一组工具和API为任何Apple设备构建用户界面。SwiftUI具有易于阅读且易于编写的声明式Swift语法,可与新的Xcode设计工具无缝协作,以使您的代码和设计完美地保持同步。自动支持动态类型,暗模式,本地化和可访问性,这意味着您的SwiftUI代码的第一行已经是您编写过的功能最强大的UI代码。
在本节中,您将学习SwiftUI框架的目的。SwiftUI在Xcode 11上可用,我将演示如何在macOS Mojave Playgrounds上运行SwiftUI。
创建和合并视图
在本节中,您将学习SwiftUI框架的结构。您将了解布局视图,包括VStack,HStack和ZStack。您还将学习如何将图像添加到您的应用程序。
建筑清单和导航
在本节中,您将学习如何在SwiftUI中显示可滚动列表。您将使用List控件的功能来构造和配置您的界面。您还将学习如何向应用程序添加导航和执行动画效果。
了解状态和约束
状态和绑定是SwiftUI框架的核心。在本节中,您将学习状态的概念及其如何使接口保持同步。您还将学习绑定背后的概念并实现双向绑定。最后,您将了解BindableObject协议以及它如何帮助在iOS中创建更多响应式应用程序。
了解MVVM设计模式
在本节中,您将了解MVVM设计模式。当您使用SwiftUI应用程序时,MVVM设计模式是首选模式。
从JSON Web API获取数据
在本部分中,您将创建一个完整的News App,它将展示如何从JSON Web API获取数据并显示在SwiftUI应用程序中。您将使用MVVM设计模式实现此应用程序。
BestSeller | h264, yuv420p, 1280×720 |ENGLISH, aac, 44100 Hz, stereo, s16 | 13h 20 mn | 7.21 GB
Instructor: Mohammad Azam
Updated for Xcode 11 – Includes State, Binding, ObservableObject, MVVM, Web API, Core Data, Core ML
What you’ll learn
Building iOS apps using SwiftUI framework
Implementing MVVM Design Pattern using SwiftUI
Consuming JSON Web API using SwiftUI
Requirements
Xcode 11
macOS Catalina is recommended
Description
SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. Build user interfaces for any Apple device using just one set of tools and APIs. With a declarative Swift syntax that’s easy to read and natural to write, SwiftUI works seamlessly with new Xcode design tools to keep your code and design perfectly in sync. Automatic support for Dynamic Type, Dark Mode, localization, and accessibility means your first line of SwiftUI code is already the most powerful UI code you’ve ever written.
Requirements
Basic understanding iOS architecture
knowledge of Swift programming language
Mac
Introduction
In this section you will learn the purpose of SwiftUI framework. SwiftUI is available on Xcode 11 and I will demonstrate how you can run SwiftUI on macOS Mojave Playgrounds.
Creating and Combining Views
In this section you will learn the structure of the SwiftUI framework. You will learn about layout views including VStack, HStack and ZStack. You will also learn how to add images to your application.
Building List and Navigation
In this section you will learn how to display a scrollable list in SwiftUI. You will use the power of List control to structure and configure your interface. You are also going to learn how to add navigation to your application and perform animation effects.
Understanding State and Binding
State and Binding are the heart of SwiftUI framework. In this section you will learn the concept of state and how it helps to keep the interface in sync. You are also going to learn the concepts behind binding and implement bi-directional binding. Finally, you will learn about BindableObject protocol and how it can help to create more reactive apps in iOS.
Understanding MVVM Design Pattern
In this section you will learn about MVVM Design Pattern. MVVM Design Pattern is the prefered pattern when you are working with SwiftUI applications.
Fetching Data from JSON Web API
In this section you are going to create a complete News App which will showcase how to fetch data from a JSON Web API and display in a SwiftUI application. You will implement this application using the MVVM Design Pattern.
Who this course is for:
iOS developers who want to learn about the new SwiftUI Framework
Swift developers who wants to learn about SwiftUI Framework
原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/8965.html