background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Основы SwiftUI / Урок 29 / MapKit + SwiftUI / Карты в SwiftUI"

input logo icon
Video tags
|

Video tags

swiftUI
swift
UIKit
Xcode 11
Xcode 12
iOS
iOS Developer
Ыцшае
фззду
шщы вумудщзук
Swift 5.3
senior software engineer
программист
разработчик
objective c
senior ios developer
ios разработка
ios разработчик
mac os
ыцшаегш
гшлше
junior interview
свифт
задачи свифт
собеседования на iOS разработчика
основы SwiftUI
основы Swift
фреймворк SwiftUI
swiftui framework
swiftui уроки
swiftUI туториал
mapkit свифт
mapkit swiftui
maps swiftui
карты в swiftui
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:02
to study the yuan whistle
00:00:03
in this video, let's talk about maps and the
00:00:06
integration of the
00:00:07
bobcat framework, so in order for
00:00:11
us to first create the simplest map, we
00:00:15
first need to import the
00:00:17
bobcat framework itself, write import bobcat
00:00:24
for this I will create a separate structure and
00:00:27
call it Matthew
00:00:28
I’ll do this separately, and in the content view
00:00:32
I’ll write just a map view for now,
00:00:37
let’s create it, and so
00:00:41
Matthew’s structure should be subscribed to the protocol
00:00:45
you a i’m yours, the present was because it’s
00:00:48
not yet possible to directly
00:00:50
connect bobcat in the yuan connection, so we’re doing this
00:00:54
through the old yoaket framework, if we
00:00:57
go into the description of cue
00:01:01
yura presented, we will see that it is
00:01:03
exactly what is needed to
00:01:05
implement yoaket
00:01:07
in the holy one, then inside the map view structure
00:01:11
we must create two functions, the first
00:01:14
creates the map itself 2 and update
00:01:17
let's create them I I’m writing funk mike and
00:01:21
here we immediately see the make
00:01:25
way you function,
00:01:27
let’s use a ready-made
00:01:29
constructor, which means we see that you
00:01:32
function returns itself you a review,
00:01:35
we’ll write instead m kay mafia them
00:01:39
spear is the class that is responsible
00:01:43
for exactly the representation of the card itself and
00:01:45
inside since we are returning something that
00:01:49
is a class micron and drink inside we will
00:01:53
create an
00:01:54
instance of the class I write light map view
00:02:00
equals mt
00:02:02
labels parentheses
00:02:06
and this is kinder we return we write turf
00:02:11
mafia
00:02:13
then we will create a function that is responsible
00:02:16
for updating the map it is called
00:02:20
update you a view in quality and avi we
00:02:23
will have enkei ointment inside for now there
00:02:27
will be nothing so let’s run we
00:02:33
see that the card is connected the card is being
00:02:37
updated by the way to bring the
00:02:40
card closer in the simulator you need to
00:02:43
hold down the general one and then just move
00:02:49
another small detail I want the
00:02:52
card to go beyond the borders series so
00:02:56
I'll write
00:02:57
Matthew modifier and Jess exactly Renzi
00:03:01
and series. cold let's run it again,
00:03:06
we see that the piri maps take up the
00:03:09
entire screen,
00:03:10
but well, we added the map,
00:03:13
but in essence it
00:03:14
is now a picture without any
00:03:18
interaction, in order to set up just the
00:03:21
same interactions, we must create a
00:03:24
class in Russian called coordinator
00:03:27
inside Matthew and so I write a
00:03:32
coordinator class, it is inherited from n.s.
00:03:36
object and subscribed to the MTTY
00:03:42
delegate protocol inside the class, I will leave a link
00:03:46
to the parent structure, so to speak, I
00:03:49
write war er yang:
00:03:53
map view and then I will make an initializer.
00:03:58
Now we see that our code does not want to
00:04:01
compile because we must
00:04:04
add another function to Matthew
00:04:08
make picture this is inside we write
00:04:11
coordinator in parentheses sat this is necessary to
00:04:15
provide feedback between the map
00:04:17
on the ram and the map view and now let's add
00:04:20
another line of code inside the function made you
00:04:23
a view
00:04:24
we will write map view.
00:04:29
case gate equals context .
00:04:34
kargin ritter so we have finished
00:04:37
the configuration,
00:04:38
this means that now we can start
00:04:40
writing methods that will monitor
00:04:43
activity on the map for example when the
00:04:46
map has loaded when we make makita
00:04:49
moves around the map and so on for
00:04:52
demonstration I will add one method inside the
00:04:55
coordinator class it is called do not drink
00:04:59
de change thread origin this
00:05:03
big name inside will be printed
00:05:07
in the console line,
00:05:08
namely mayor yu.
00:05:12
the center of the picture that is, the coordinates will be
00:05:16
printed, let's run it and so we
00:05:25
see that wherever we are on the
00:05:27
map
00:05:33
our coordinates change, here they are in the
00:05:39
console if we want to add some
00:05:42
point to the map this is done using an
00:05:45
annotation for this inside the structure we
00:05:48
view we we create an instance of the class m kay
00:05:53
point on the shoe I write years annotation
00:05:59
equals anchor point annotations
00:06:04
further means annotation now there are
00:06:07
properties such as title garden title and
00:06:11
coordinates as annotation
00:06:14
. someone we will write down, let’s say the name of
00:06:18
my hometown Yekaterinburg
00:06:20
as a
00:06:22
sap to tell, that is, I write an annotation.
00:06:26
Well, let’s say home town,
00:06:31
then we set the coordinates, I write
00:06:34
annotation. coordinates means equal to si
00:06:39
au location coordinates 2d
00:06:44
ate this colocation another framework
00:06:48
from apple we set the latitude and longitude for
00:06:51
Yekaterinburg latitude 56.
00:06:55
84 longitude 60 .
00:07:00
64 and then add map you .
00:07:05
it annotations and inside we will write
00:07:09
annotation, that is, we will apply the method to add
00:07:12
an annotation, let's run it, so we see
00:07:16
on the maps now we have
00:07:18
Yekaterinburg and if we click on the flag we
00:07:22
will see that the phrase home town has appeared,
00:07:25
that is, the software for this has appeared, that
00:07:30
is, some kind of description small if we
00:07:32
want to
00:07:33
customize the annotation this is done
00:07:37
inside the coordinator class we add the
00:07:41
map view function inside
00:07:46
I write map view : m key map view
00:07:54
then view in annotation
00:08:00
I return mt annotation view
00:08:04
optional inside the function I will create an
00:08:09
instance call
00:08:10
it view instance mtp
00:08:14
annotation view in parentheses I will indicate
00:08:18
annotation
00:08:19
this is our constant, it is nausea on the 3rd
00:08:23
side in typhus and let’s do Neil for now, let it
00:08:26
be like this and continue inside the map view function,
00:08:30
I will say view .
00:08:34
ken show callout equals pipes and from
00:08:37
the function we return view forgot to
00:08:39
indicate annotation mt and
00:08:43
annotations
00:08:44
in yufo annotation its type is
00:08:48
mt annotation so let's align everything
00:08:52
and run it and so now if I zoom in
00:09:01
and click on the flag
00:09:04
I will see a custom annotation title
00:09:08
Yekaterinburg the subtitle for
00:09:11
pounds looks much better than the
00:09:15
standard one so friends,
00:09:18
we're done with the cards. In the future we will
00:09:21
create projects that
00:09:24
involve much more complex work with
00:09:26
cards, but for now this is enough to get started,
00:09:28
thank you all for your attention,
00:09:30
see you in the next lesson,
00:09:32
good luck to everyone

Description:

Друзья, это мой новый бесплатный курс основам фреймворка SwiftUI. В этом курсе мы шаг за шагом будем двигаться к созданию наших первых приложений и изучать новые возможности и новые техники создания приложений, которые нам предоставляет SwiftUI. Перед прохождением этого курса, рекомендую пройти мой курс по основам программирования на языке Swift. Вы можете найти его у меня на канале. Желаю успеха! #ityoutubersru

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Основы SwiftUI / Урок 29 / MapKit + SwiftUI / Карты в SwiftUI" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Основы SwiftUI / Урок 29 / MapKit + SwiftUI / Карты в SwiftUI" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Основы SwiftUI / Урок 29 / MapKit + SwiftUI / Карты в SwiftUI" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Основы SwiftUI / Урок 29 / MapKit + SwiftUI / Карты в SwiftUI" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Основы SwiftUI / Урок 29 / MapKit + SwiftUI / Карты в SwiftUI"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Основы SwiftUI / Урок 29 / MapKit + SwiftUI / Карты в SwiftUI"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.