Introducing Maps in SwiftUI using MapKit

aDhJVKIYLTL4NxY5KKGN2pRATopp5vjx

随着 iOS 14 的发布,SwiftUI 世界中引入了地图视图。地图是显示嵌入式地图界面的视图。地图视图显示一个区域,您可以在 SwiftUI 视图中本机使用此视图。地图视图有许多配置选项,可让您显示或跟踪位置,甚至与视图上的地图进行交互。

SwiftUI 地图非常适合调出地图并在地图中显示一些基本功能,但它与 UIKit 版本的 MKMapView 不匹配。但是通过 UIKit 映射移植很容易。在本课程中,我们将从一个简单的地图开始,探索 SwiftUI 提供的地图的所有功能。从那里我们将探索一些高级选项地图地图注释和地图标记。我们还将使用纯 SwiftUI 视图构建地图标记。

SwiftUI 地图版本尚不支持不同类型的地图,但我们可以通过构建地图的 UIKit 版本来添加该支持。该地图将允许我们支持 SwiftUI 世界的地图类型。

我们还将探索添加核心位置框架以支持用户的位置跟踪以及订阅以在用户在地图中移动时接收发布的用户位置的能力。
本课程适用于谁

想要在 SwiftUI 中集成地图并在 SwiftUI 中为 iOS 构建基于地图的应用程序的开发人员

Genre: eLearning | MP4 | Video: h264, 1280×720 | Audio: AAC, 48.0 KHz
Language: English | Size: 799 MB | Duration: 8 lectures • 1h 39m

Build map enabled apps in SwiftUI

What you’ll learn

Map view in SwiftUI
MKMapView from UIKit to SwiftUI
Core location integration into SwiftUI
Integration of Maps in SwiftUI based apps

Requirements

Knowledge of Swift
Knowledge of SwiftUI

Description

Map view was introduced in the world of SwiftUI with the release of iOS 14. Map is a view that displays an embedded map interface. Map view displays a region and you can use this view natively in SwiftUI view. Map view has many configuration options which will allow you to display or track a location and even interact with the map on the view.

SwiftUI map is great to bring up maps and display some of the basic functionalities in the map but its no match to UIKit version of MKMapView. But the porting over UIKit map is easy. In this course we will start with a simple map and explore all the functionalities there are for maps to offer from SwiftUI’s. From there we will explore some of the advance options map map annotations and map markers. We will also build map marker using pure SwiftUI views.

SwiftUI map version doesn’t support different types of maps yet but we can add that support by building UIKit version of the map. This map will allows us to support map type of SwiftUI world.

We will also explore ability to add core location framework to support user’s location tracking along with subscribing to receive published user location as they move in the map.
Who this course is for

Developers who wants to integrate Maps in SwiftUI and build map based apps for iOS in SwiftUI

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

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

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

相关推荐

发表回复

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