To get the most recent location it's locations.last and not locations.first. Correct?
@gregorymoore28773 жыл бұрын
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.
@siamesestormtrooper2 жыл бұрын
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
@nemanja79012 жыл бұрын
Didi someone have this problem: Location[40922:297515] [MKCoreLocationProvider] CLLocationManager() for did fail with error: Error Domain=kCLErrorDomain Code=1 "(null)" ?
@MrMurmandramas Жыл бұрын
did you figure out what was the cause?
@Mubashirminhas-c5i Жыл бұрын
Nicely done Sean.
@seanallen Жыл бұрын
Glad you liked it!
@dineshdas99832 жыл бұрын
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?
@aticatac3 жыл бұрын
Great tutorial, just what I needed.
@christoskatsenos133 жыл бұрын
Once again a great video!
@ajayspatil3 жыл бұрын
Awesome Sean!!! Never stop @Publishing New videos!!
@Stephen2697.3 жыл бұрын
Gosh you make iOS development easy & concise. 👏
@tpmchugh66283 жыл бұрын
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_RM3 жыл бұрын
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
@zb11233 жыл бұрын
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 Жыл бұрын
Error with xcode 14 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Delegate must respond to locationManager:didUpdateLocations:'
@jaewooko45272 жыл бұрын
Thanks again for nice tip.
@eliabbott45393 жыл бұрын
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
@iosdev56823 жыл бұрын
I would want to console log the user's location, how so?
@muhammadtayyab20043 жыл бұрын
Please start tutorials for apple watch development..
@abdouett36763 жыл бұрын
Thank you for the video! Instead of using Main queue, it's possible to use @Main Actor.
@relax_music6683 жыл бұрын
Thank you Sean。
@wn3523 жыл бұрын
King.
@LGiampouras3 жыл бұрын
Where’s the pink location dot 😁
@judy88213 жыл бұрын
Great!
@ormusicevents3 жыл бұрын
All it says for me is location button not in scope! Help
@pam_app3 жыл бұрын
import CoreLocationUI
@ormusicevents3 жыл бұрын
@@pam_app thank you!
@cristibaluta3 жыл бұрын
I found it unreliable, i need to tap it multiple times to get the location.