SwiftUI MapKit Basics

preview_player
Показать описание
It’s so simple to use maps in your SwiftUI project now! Learn how to add MapKit and a Map component to your SwiftUI project as well as to add markers and annotations. You’ll learn how to set the region and change the style for your map as well.

What you’ll learn: (Timestamps)
00:00 Introduction
01:23 Step 1: Adding a map to the SwiftUI project
01:43 Step 2: Adding markers to the map
04:01 Step 3: Adding an annotation to the map
06:55 Step 4: Setting the region and camera position
11:09 Step 5: Changing the style of the map
12:07 Outro

Source code/Xcode project:

WWDC23 video reference used:
Рекомендации по теме
Комментарии
Автор

Chris, I first watched your videos four years ago, took a break from the developer path, and now I'm back watching them again. They are truly awesome. You have an incredible talent for explaining things and presenting them in an elegant way. I must make a point to watch your videos more often. Definitely much more.

etaosin
Автор

Wow, this makes Maps so much easier in SwiftUI! I'm working with Maps in an iOS 14 project and they are a HASSLE! Such a nice new API. Thanks for introducing it :D

FloWritesCode
Автор

I watched the full WWDC23 video before I watched yours. I must say, you were able to cover the essentials quite well in a fraction of the time! Thanks.

wadaienglish
Автор

Thank you for your content. It is very easy to understand for someone who doesn't speak English.
Greetings from argentina

magnusmanz
Автор

Today I was planning to learn mapkit, I searched the web and youtube OMG it happened unexpectedly thanks chris... Nic tutorial 🔥

poovarasank
Автор

Hi. It's showing error/ "Missing argument for parameter 'mapRect' in call" just as I first wrote Map()

richardcoterie
Автор

you got me by 30 seconds, now let see if I was just baited into a 10 minute video for add revenue

jmartin
Автор

Thank you! I have learnt loads with this video!

snavemarc
Автор

Thank you very much for helping me learn 🤗

monsieurmilo
Автор

Do you have a video where you can add to the map on the user end and store them?

TheRealDomDavid
Автор

I tried to create an app with UIMapKit a few years ago. I was making some progress but eventually my limited coding experience prevented me from completing it. I’m hoping SwiftUI will make my attempt much easier.

warrenscorner
Автор

Where can I make video suggestions for this channel? Thx😊

jesseyates
Автор

How can i center the map on a specific coordinate on view creation?

senex
Автор

How do we get the coordinate of the user automatically here, here we give it manually?

s.tunahanustuntepe
Автор

Can you show in a future vid how we could add button for directions from where the user is to selected coordinates, it would help a lot. Thx!☺️

jt
Автор

Hey,
I love the video!
Could you explain how show the user location with the new API?

simmsilot
Автор

Hi, thanks for this great intro to maps. I will build an app for aircraft navigation and unfortunately, there is no internet access in the aircraft. Can you give me some advice how I can download maps for offline usage? Thanks and best regards, Wolfram

wolframschiffmann
Автор

Can you do tutorial to how to show user location

FabricioMTL
Автор

This should be on CWC+, especially the camera positioning part. This way everything is together

danielcrompton
Автор

Thx man! you're making almost possible my app for my college project 🫂

oreooreo