SwiftUI LocationButton - Get User Location | iOS 15

  Рет қаралды 17,008

Sean Allen

Sean Allen

Күн бұрын

Пікірлер: 31
@yourbestsail
@yourbestsail Жыл бұрын
To get the most recent location it's locations.last and not locations.first. Correct?
@gregorymoore2877
@gregorymoore2877 3 жыл бұрын
Excellent video as usual. but if you really want the latest location, you need `locations.last` as new locations are added to the end of that array. According to Apple's documentation.
@siamesestormtrooper
@siamesestormtrooper 2 жыл бұрын
I'm also getting an error saying "Publishing changes from within view updates is not allowed". This seems to be a problem thats come up within the last few months with SwiftUI
@nemanja7901
@nemanja7901 2 жыл бұрын
Didi someone have this problem: Location[40922:297515] [MKCoreLocationProvider] CLLocationManager() for did fail with error: Error Domain=kCLErrorDomain Code=1 "(null)" ?
@MrMurmandramas
@MrMurmandramas Жыл бұрын
did you figure out what was the cause?
@Mubashirminhas-c5i
@Mubashirminhas-c5i Жыл бұрын
Nicely done Sean.
@seanallen
@seanallen Жыл бұрын
Glad you liked it!
@dineshdas9983
@dineshdas9983 2 жыл бұрын
I did exactly what but it shows the the error in build log in purple Color Saying " Publishing changes from within view updates is not allowed, this will cause undefined behavior. " what am I do now?
@aticatac
@aticatac 3 жыл бұрын
Great tutorial, just what I needed.
@christoskatsenos13
@christoskatsenos13 3 жыл бұрын
Once again a great video!
@ajayspatil
@ajayspatil 3 жыл бұрын
Awesome Sean!!! Never stop @Publishing New videos!!
@Stephen2697.
@Stephen2697. 3 жыл бұрын
Gosh you make iOS development easy & concise. 👏
@tpmchugh6628
@tpmchugh6628 3 жыл бұрын
Thank you Sean. This was a great, crystal clear and to-the-point presentation on how to get the current location of a user and present it on a map view.
@TarunReddy_RM
@TarunReddy_RM 3 жыл бұрын
Great Video Sean as always. Quick question, is it possible to send someone your location like how you can send your location in the native apple find my friends application? Thank you
@zb1123
@zb1123 3 жыл бұрын
Sean - have remote-fetched Image(uiImage:) in Widgets broken for you? Keep getting weird visual bugs where portions are blacked out temporarily. Think it may be a system rendering bug as the issue "fixes" itself, after spam swiping on the homescreen / widget focus menu (w/o firing any new timeline requests)... Really frustrating & wondered if you have come across this/had a solution?
@mikebruns1300
@mikebruns1300 Жыл бұрын
Error with xcode 14 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Delegate must respond to locationManager:didUpdateLocations:'
@jaewooko4527
@jaewooko4527 2 жыл бұрын
Thanks again for nice tip.
@eliabbott4539
@eliabbott4539 3 жыл бұрын
Hey, Sean thanks for making this video it helped and was very clear. I am in the middle of updating my app so they have more features and I am implementing this map- get users location button into it. But I am wondering if you can help with map annotations and being able to click on a pin and be able to use the directions feature of maps. Much appreciated
@iosdev5682
@iosdev5682 3 жыл бұрын
I would want to console log the user's location, how so?
@muhammadtayyab2004
@muhammadtayyab2004 3 жыл бұрын
Please start tutorials for apple watch development..
@abdouett3676
@abdouett3676 3 жыл бұрын
Thank you for the video! Instead of using Main queue, it's possible to use @Main Actor.
@relax_music668
@relax_music668 3 жыл бұрын
Thank you Sean。
@wn352
@wn352 3 жыл бұрын
King.
@LGiampouras
@LGiampouras 3 жыл бұрын
Where’s the pink location dot 😁
@judy8821
@judy8821 3 жыл бұрын
Great!
@ormusicevents
@ormusicevents 3 жыл бұрын
All it says for me is location button not in scope! Help
@pam_app
@pam_app 3 жыл бұрын
import CoreLocationUI
@ormusicevents
@ormusicevents 3 жыл бұрын
@@pam_app thank you!
@cristibaluta
@cristibaluta 3 жыл бұрын
I found it unreliable, i need to tap it multiple times to get the location.
SwiftUI Confirmation Dialog | iOS 15
6:52
Sean Allen
Рет қаралды 10 М.
How to Get User Location on a Map - Swift
26:11
Sean Allen
Рет қаралды 66 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
SwiftUI List with Custom Cell & Passing Data
36:27
Sean Allen
Рет қаралды 119 М.
Request User Location With SwiftUI
26:13
AppStuff
Рет қаралды 11 М.
Memory Leaks in iOS: Find, Diagnose, & Fix (2022)
12:44
iOS Academy
Рет қаралды 54 М.
Cloud Firestore Get Data (and other operations) with SwiftUI
41:31
CodeWithChris
Рет қаралды 43 М.
How to use TimelineView in SwiftUI | Advanced Learning #26
20:22
Swiftful Thinking
Рет қаралды 7 М.
NavigationStack - SwiftUI Programmatic Navigation - iOS 16
20:20
How to use NavigationStack in SwiftUI | Bootcamp #62
23:59
Swiftful Thinking
Рет қаралды 40 М.
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 55 М.