|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/complete-weather-app-for-watchos-using-swiftui-combine/
课程评论:没有评论
课程名称:使用SwiftUI和Combine开发完整的WatchOS天气应用 课程概述:SwiftUI彻底改变了iOS应用开发的生态,使得WatchOS开发变得简单。通过将可重用的SwiftUI视图直接应用于项目,并针对特定目标运行,我们将在此课程中专注于WatchOS和SwiftUI的结合。由于SwiftUI的引入,UI开发的许多概念得以融合,学习变得更加轻松。比如,您在iOS、iPadOS、MacOS和TVOS上学习和应用的SwiftUI概念大多相同。尽管WatchOS在硬件和屏幕尺寸等方面有不同的规范,但SwiftUI会自适应这些变化,提供适用于WatchOS的界面,而且您编写的代码基本与iOS的SwiftUI相同。本课程将通过构建一个Apple Watch上现有天气应用的克隆来开始我们的WatchOS开发之旅,我们将学习如何在SwiftUI中构建WatchOS应用。课程内容包括结合使用Combine、核心位置框架、Codable协议,并学习请求用户获取位置跟踪权限,以展示当前位置信息的天气状况。 学习目标: * 理解WatchOS和SwiftUI * 学习位置权限及位置访问 * 掌握Info.plist和位置跟踪权限的设置 * 使用CLLocationManager进行地点跟踪 * 创建通用网络管理器 * 在WatchOS上进行网络和API调用 * 使用OnReceive观察者监控位置变化 * 对坐标进行反向地理编码 课程大纲:无
SwiftUI has changed the entire dynamics of app development in iOS space. Now developing for watchOS is as easy as dropping reusable SwiftUI views into the app and run them against the correct target. In this course, we are going to work on WatchOS and SwiftUI. With the introduction of SwiftUI, a lot of UI development have been combined and learning has become easy. For example, most of the concepts of SwiftUI that you learn and apply on iOS, iPadOS, MacOS and TVOS are same. WatchOS has different specs as far as the hardware, screensize etc goes so SwiftUI adapts to those changes and provides a look that works of WatchOS but the code you write is pretty much same as SwiftUI for iOS.We will start our journey of WatchOS by building a clone of Weather app, which is present in your Apple Watch. we will learn to build watchOS app in SwiftUI. You will learn about Combine, Core Location, Codable Protocol and will learn to request user's location tracking permissions to present weather condition information about their current location.Learning Objectives: * WatchOS and SwiftUI * Location permissions and location access * Info.plist and location tracking permissions * Use of CLLocationManager and Location Tracking on WatchOS * Generic Network Manager * Networking and API calls from WatchOS * Use of OnReceive Observer to monitor changes in location * Reverse geocoding for coordinates