🔴 Let's Build UBER with SwiftUI | iOS 16 & Xcode 14

  Рет қаралды 62,326

AppStuff

AppStuff

Күн бұрын

It's finally here. We're building Uber with SwiftUI!
Feature list:
👉 Display the user's location on a responsive map view with SwiftUI
👉 Search for locations with an incredible auto complete feature
👉 Select a location to request a ride
👉 Build a beautiful user interface with custom pricing models, ride types and more!
👉 Add annotations and get directions on map
🖥️ CODE + RESOURCES
🔴 FULL COURSE (includes source code):
appstuff.teachable.com/course...
🔴 Become a member for lifetime access to source code:
www.stephancodes.com/blank-page
🔴 Uber SwiftUI Pro Source Code (contains additional features):
www.stephancodes.com/product-...
🔴 Project assets & images:
drive.google.com/file/d/1a9Ud...
🔴 MVVM Diagram:
drive.google.com/file/d/1N8aD...
🖥️ ONLINE COURSES & APPS
👉 iOS App Templates:
www.stephancodes.com/shop
👉 FREE Twitter SwiftUI Course
• 🔴 Let's Build Twitter ...
👉 SwiftCoin | Crypto App w/ SwiftUI
www.udemy.com/course/swiftcoi...
👉 Instagram SwiftUI Clone
www.udemy.com/course/instagra...
👉 SwiftUI Chat App
www.udemy.com/course/swiftui-...
👉 Pro Courses:
www.stephancodes.com/videos
🕐 TIMESTAMPS:
00:00 - Intro
05:34 - Source code
06:37 - Project setup & Showing user location on map
31:20 - Uber SwiftUI Pro Demo
37:35 - Location Search UI
1:06:13 - Searching for locations
1:22:04 - Selecting a location
1:37:22 - Getting location coordinates
1:47:59 - Adding annotation to map
1:57:32 - Generating route to destination
2:11:26 - MapView state management
2:38:09 - Ride Request View UI
2:57:46 - Presentation logic for Ride Request View
3:10:44 - Ride type data model
3:27:55 - Pricing model
3:52:31 - Adding trip data to ride request view
4:05:29 - Dark mode support & bug fixes

Пікірлер: 107
@appstuff5778
@appstuff5778 Жыл бұрын
🔴FULL COURSE AVAILABLE NOW (includes source code): appstuff.teachable.com/courses/uber-swiftui-pro
@KishanDevraj
@KishanDevraj Жыл бұрын
I have requested cancellation to your subscription for over 7 months and you haven't responded and continue to take funds from my account. I have had to resort to legal action. Please cancel immediately
@raph_feuer3557
@raph_feuer3557 Жыл бұрын
@@KishanDevraj that's crazy
@gamelogicShortage
@gamelogicShortage Күн бұрын
Can I get the whole Xcode folder on your website instead…! If so please let me know.
@devhopes
@devhopes Жыл бұрын
Great tutorial Stephan. I really enjoyed this one. I am lucky enough to go through your Twitter, Chat App etc and other tutorials in the past. Keep up the GREAT work 😊🙏🇨🇦👩🏽‍💻
@mEtAlMaNiAc787
@mEtAlMaNiAc787 Жыл бұрын
thanks man!! i hope your channel blows up cause this is some really quality!!
@bordernflgurus4414
@bordernflgurus4414 7 ай бұрын
This one is very different from the other courses I have took from Stephan, but I am really enjoying it. Another homerun Stephan!!. well done.
@sarahwilliamson5377
@sarahwilliamson5377 Жыл бұрын
Thanks for sharing this! Been learning SwiftUI and UIKit on the fly for work...
@Aureliola
@Aureliola Жыл бұрын
Awesome dude. I just finished this tutorial,and guess what, Im buying gold membership in yr website. How cool the way you teaching. Step by step.
@JacobSucksAtCode
@JacobSucksAtCode Жыл бұрын
Amazing teaching style bro. Great for people who have developer experience but wanting to dive more into iOS. Subbed!
@jackmurphy587
@jackmurphy587 Жыл бұрын
Hey man, I love your stuff and Im so glad you are continuing these videos!!
@appstuff5778
@appstuff5778 Жыл бұрын
Appreciate you Jack!!
@jasinnnnnnn
@jasinnnnnnn Жыл бұрын
You've gotta be the most underrated Coding/Swift KZfaqr on here.
@okjosh
@okjosh Жыл бұрын
This is exactly what I needed. Just started learning development with SwiftUI a week ago.
@appstuff5778
@appstuff5778 Жыл бұрын
This one is a little more difficult if you’re new to SwiftUI. I highly recommend the other courses on my channel, SwiftCoin and Twitter!
@okjosh
@okjosh Жыл бұрын
@@appstuff5778 thanks. Im about hour and half in, no probs so far. While I’m new to ios, I have 20+ yrs with web and windows apps/services, so the fundamentals are there. I will definitely be going thru the rest of your channel tho. The way you teach is the perfect pace for me!
@lucassoares9800
@lucassoares9800 2 ай бұрын
Just a quick note: .distance(from: ) gives you the distance between 2 points in a straight line, not the actual distance of the route.
@Testtesztest12123
@Testtesztest12123 Жыл бұрын
Thanks a lot for making this. Really a valuable resource 🙏🙏🙏
@Xaxxus
@Xaxxus Жыл бұрын
a better option for the ride view would be to use SwiftUI's sheet api. Rather than making our own custom sheet. Since iOS 16, you can make custom sized sheets using the new Detent apis. Also another issue I've noticed is that when you tap the back button to close the ride request view, the sheet disappears instead of sliding down. EDIT: I discovered if you provide a .zIndex to the sheet it solves the dismissal transition issue.
@longnguyen-od1qy
@longnguyen-od1qy Жыл бұрын
this is dope, i boight your uber clone on udemy and it was incredible. This is another masterpiece
@appstuff5778
@appstuff5778 Жыл бұрын
Thank you :)
@TheThornTech
@TheThornTech Жыл бұрын
I really appreciate your content brother.
@erickmartins9510
@erickmartins9510 Жыл бұрын
THANKS MAN! AMAZING WORK
@latinacoder3699
@latinacoder3699 Жыл бұрын
I remember Uber kit no storyboard and I learned a lot
@911lalala
@911lalala Жыл бұрын
STEPHAN DOWLESS Who is the Best Teacher in the World👏 Thank you for your amazing job. I appreciate it. I hope more bunch of videos about Firebase & SWIFTUI app clone in udemy or youtube. It'll phenomenon.
@lumi6394
@lumi6394 Жыл бұрын
This is awesome, thank you!
@ANILAVCI
@ANILAVCI Жыл бұрын
I made the 1000th like. Great content indeed.
@timmyvegas
@timmyvegas Жыл бұрын
😍😍😍😍 love you!!
@stephenaldous762
@stephenaldous762 Жыл бұрын
How did I not find your videos before! Great modules with clear explanations as to why and how to do things. Thank you so much, I learned a lot.
@aabidmajid4929
@aabidmajid4929 Жыл бұрын
I am beginner to SwiftUI and mobile app dev in general. Could you recommend some resources where I can learn from the basics. I find this tutorial hard to follow. Thanks.
@sraldous
@sraldous Жыл бұрын
@@aabidmajid4929 kzfaq.info/get/bejne/ht2ImspqxsrPlIE.html&pp=iAQB
@bordernflgurus4414
@bordernflgurus4414 7 ай бұрын
@@aabidmajid4929 this channel has some great beginner tutorials. I am also a beginner and the only way to get more familiar with coding is by doing it. Just keep building projects like this and learning the basics. This project is definitely not basic, it is relatively complex from my perspective.
@annewang4848
@annewang4848 Жыл бұрын
Nice work
@tilekkoszhanov9632
@tilekkoszhanov9632 Жыл бұрын
Great video , thanks a lot. Any chance we see such a tutorial for Uber eats app ? That would be fantastic as there are no such courses in web 🙏🏼
@dugrut1325
@dugrut1325 Жыл бұрын
I can’t wait to start this app. I went through Fiona storm and survived, I have a few days before the Tree Doctor gets here to remove all the fallen trees. 🎉
@marcoalonsoiosdev
@marcoalonsoiosdev Жыл бұрын
You are the best! Thanks a lot!
@FabricioMTL
@FabricioMTL Жыл бұрын
Bro you are the GOAT
@shum8567
@shum8567 Жыл бұрын
Hey, thank you for your videos. Will there be any UIKit tutorials?
@emmanuelmensah990
@emmanuelmensah990 Жыл бұрын
SwiftUI for life 🎉
@sovrinfo
@sovrinfo Жыл бұрын
Thanks
@technodipeshmakwana
@technodipeshmakwana Жыл бұрын
Great content, Thanks About to complete the tutorial. 3:41:16 -> RideRequestView -> Line number: 89 -> We can use also Text(String(format: "$%.2f", locationSearchViewModel.computeRidePrice(forType: type))) Right?
@Nathan-vd1pp
@Nathan-vd1pp Жыл бұрын
Hey love the content, I tried to show my friend your channel and on mobile your profile picture makes the text really small and hard to read. Not sure if you could make it bigger or change it to your face or something. Keep up the good work🎉 🤝
@WhenYoureBored2
@WhenYoureBored2 Жыл бұрын
Hey man! Great stuff, love this type of content. quick question: after adding annotations to the map, my live previews started crashing. Got an error code like: "No ObservableObject of type LocationSearchViewModel found. A View.environmentObject(_:) for LocationSearchViewModel may be missing as an ancestor of this view." Could you please help me understand this? Thank you so much
@user-qd9ft6yq7i
@user-qd9ft6yq7i Жыл бұрын
Sir I had purchased you let's build uber with Swift ui and I loved it, but when the part 2 is coming
@kevinmaynard4717
@kevinmaynard4717 4 ай бұрын
In your full course, do you show how to complete routing and turn-by-turn directions? I've been working on an app that is utilizing iOS 17's Map() and can get the Route.Step information, but I've been struggling creating the parts where the route.step follows the user. I'm thinking I may need to use the UIViewRepresentable as you did here. I have no problem purchasing the course, but want to ensure it covers what I'm looking for first. Thank you!!
@vjaceslavsbudjakovs7569
@vjaceslavsbudjakovs7569 Жыл бұрын
Thank you very much for this tutorial, Amazing job. But could please assist, when I test app on Iphone after location selected and polyline rendered Map zooms and perfectly fit to polyline - its great, but after 2 sec map goes back to iphone location and centered on it. Please help why it is happening and how to fix it? Thank you in advance
@gamelogicShortage
@gamelogicShortage 3 күн бұрын
Thank you for this video man, I really like how you're doing it, but I have an issue where my bugger button is not animating the arrow sign for the back button, I did not do anything wrong ...... do you have a fix for that, or how can I get to show you what I mean ?
@aliabdelrhim
@aliabdelrhim 9 ай бұрын
From a UX point of view, isn't it better when you are in "locationSelected" and hit the back button to go back to the search result and display the results so the user can select another location if that is not suitable, instead of going back to "noInput"?
@rubensiman8749
@rubensiman8749 Жыл бұрын
HOW TF IS THIS GUY NOT IN THE 100K SUBSCRIBERS?
@ricardorodriguez6143
@ricardorodriguez6143 Жыл бұрын
Because he goes very fast and skips much of the explanations
@joshkinney5091
@joshkinney5091 Жыл бұрын
I have bought 2 courses from you, and watched countless videos on youtube and I am just confused as to WHY you don't have more followers!!! GREAT CONTENT.
@appstuff5778
@appstuff5778 Жыл бұрын
I wonder the same thing lol
@ericdraven7857
@ericdraven7857 Жыл бұрын
Do you just follow and type what he does or have you actually learned and went on to create your own apps?
@Lvoonok
@Lvoonok 11 ай бұрын
Hello, there is a Paid version of this course on Udemy, what’s the difference between this and that one? Please share your thoughts. Thank you
@varunnair211
@varunnair211 11 ай бұрын
Do you recommend refactoring this project with the new MapKit improvements in iOS 17? Or is this still the best way to build a map-based location services app?
@dhayanithis5822
@dhayanithis5822 Жыл бұрын
Can you make tutorial about how to deal with api?
@rank1macro
@rank1macro Жыл бұрын
Woah, I just finished the tutorial, gotta be the longest vid I ever watched on youtube. Such an awesome app, definitely learnt a lot and I am gonna try to recreate all of this in my own way as you mentioned (as a learning strategy). Your videos are awesome, that's my second video after Pokedex and I guess the next one is gonna be Twitter clone. You've got a great personality man I love the way you teach. And by the way - are there going to tutorials on your pro version? Because I guess if I try to add more functionality from just a code (without explanation) that's gonna take so much time and I am not sure if this would be the right way 😅Thanks again, this is huuuge
@appstuff5778
@appstuff5778 Жыл бұрын
Thanks a lot man. It means a lot when I get comments like this. And yes, the pro version tutorials will come before the end of the year. It’s hard to keep up with making content with the full time gig at meta, but I’ll make it happen ;)
@AmitBiswastunebox
@AmitBiswastunebox Жыл бұрын
Please do it @appstuff
@rank1macro
@rank1macro Жыл бұрын
@@appstuff5778 No problem, that's more than deserved. Take your time, I bet job like this is pretty exhausting + creating personal content on top of that is even more. I just noticed you also have amazing tutorials on udemy, damn I am lucky 😅 GL brother!
@joshteixeira6750
@joshteixeira6750 Жыл бұрын
You're a god
@user-xg7ux8uq2b
@user-xg7ux8uq2b 8 ай бұрын
Is there a passenger and driver version of this project? Thank you.
@_thekick3r
@_thekick3r Жыл бұрын
Im getting an error in LocalSearchViewModel, saying "Redundant conformance of 'LocationSearchViewModel' to protocol 'MKLocalSearchCompleterDelegate'" What should I do to fix it?
@chicuongnguyen2587
@chicuongnguyen2587 Жыл бұрын
Is there a cash payment function in your course?
@girishdadhich3186
@girishdadhich3186 Жыл бұрын
when im running it on device , and then search the location it will automatically come to the user location point, map is stuck as well
@alextrantech4789
@alextrantech4789 Жыл бұрын
I hit the like button for good luck :)
@Khalid-vf9hx
@Khalid-vf9hx 8 ай бұрын
Hello, 8 months ago, when you mentioned refilming the rest of the videos, what happened?
@KingTode
@KingTode Жыл бұрын
Can you make a Yelp-like app tutorial? That would incorporate a few learnings: maps, APIs, content creation (reviews + photos), etc.
@appstuff5778
@appstuff5778 Жыл бұрын
I have something like that built, it’s on my list of tutorials to make
@KingTode
@KingTode Жыл бұрын
@@appstuff5778 looking forward to it! in the meantime, your videos are great
@qianqian888
@qianqian888 Жыл бұрын
cool! 3Q from china🙂
@Yerbah
@Yerbah Жыл бұрын
This is amazing. Can you create one for tinder ?
@appstuff5778
@appstuff5778 Жыл бұрын
Tinder is on my list to do!
@manasvijaywargiya8218
@manasvijaywargiya8218 Жыл бұрын
Hi Stephen, I'm a big fan of ur teaching. I had also purchased your instagram and twitter clone courses from Udemy. Great tutorial. Watched half this video till now. After selecting destination location, that location in map got highlighted but the map is only centred to user's location. Can you pls help on this?
@appstuff5778
@appstuff5778 Жыл бұрын
In the MapViewRepresentable file, there is a helper function ‘mapView(didUpdate userLocation). That’s where we handle recentering the map. You just need to use an if statement when setting the map region. If mapState != .polylineAdded { parent.mapView.setRegion(…) } Basically you can just add logic here for when you want the map to center on user location
@edfrazier
@edfrazier Жыл бұрын
@@appstuff5778 How can I expose mapState in the helper function?
@davidreed6859
@davidreed6859 Жыл бұрын
Oddly, following along with you in the tutorial (great work by the way), but having checked that I have matched you line for line... I am getting this error: Cannot assign value of type 'Void' to type '(any MKMapViewDelegate)?' at time code: 25:40 when you changed the mapView.delegate = context.coordinator. Curious if you might know why I'm getting a different result?
@jackmurphy587
@jackmurphy587 Жыл бұрын
I am getting the exact same problem
@jackmurphy587
@jackmurphy587 Жыл бұрын
Ok good news I just solved it lol. I spelt coordinator wrong in the func below it. Make sure that is set up perfectly. I just fixed it and it works now!
@user-ww3gf1qe3i
@user-ww3gf1qe3i Жыл бұрын
👍👍👍
@user-zo3wf4yx2h
@user-zo3wf4yx2h Жыл бұрын
I am getting this error "Cannot find type 'UIViewRepresentable' in scope" any way to resolve this?
@primroseneog4302
@primroseneog4302 9 ай бұрын
Go to the project(top left blue color file with the project name) and then in supported destinations remove macos and add ios only
@TylerDurden-es9iy
@TylerDurden-es9iy Жыл бұрын
I'd like to make the driver annotation move on the polyline... Can't achieve it. Any ideas?
@appstuff5778
@appstuff5778 Жыл бұрын
The completed source code has this functionality. Drivers move on the map in real time. It’s available for purchase on my site
@robbiedist
@robbiedist Жыл бұрын
@@appstuff5778Purchased the source code from your site, when launching app and creating account or logging in, white screen - Any ideas?
@cbe.5355
@cbe.5355 4 ай бұрын
Stuck at module 4
@sukumarreddypannala4453
@sukumarreddypannala4453 Жыл бұрын
after successful login my simulator showing blank screen I have tried many ways but no use
@appstuff5778
@appstuff5778 Жыл бұрын
Did you purchase the source code?
@sukumarreddypannala4453
@sukumarreddypannala4453 Жыл бұрын
@@appstuff5778 hey I have already Brough once of the pro course from your website. I have already left the same comment over there but, no response from you
@Khalid-vf9hx
@Khalid-vf9hx Жыл бұрын
me as well, did u find solution
@GoodBoy-hs9sp
@GoodBoy-hs9sp Жыл бұрын
What about driver app
@appstuff5778
@appstuff5778 Жыл бұрын
That's available in the completed source code
@TheEliteBeats
@TheEliteBeats Жыл бұрын
Is anybody else having a problem where you zoom out on the map and its zooms back in by itself?
@edfrazier
@edfrazier Жыл бұрын
'I have the same issue when running it on a development device but not the simulator. i see where the issue is happening but i just don.t know how to solve it.
@AigarsSukurs
@AigarsSukurs 6 ай бұрын
I have not finished my project, but this is problem with MKMapViewDelegate didUpdate. Just wrap the logic into parent.mapState == .noInput and you will get the core of the problem. Happy coding! :)
@alexaron9616
@alexaron9616 Жыл бұрын
Nice tutorial although his website seems like a bit of a scam. Uber Pro version does not have a tutorial and after buying it and tested it i get loads error. The information on the website os pretty clear on how to pay. The bit about taking your money works perfectly. What you get In exchange is 💩. Do not buy anything from the website or the membership. You don’t get anything in return. I’m un unhappy customer.
@appstuff5778
@appstuff5778 Жыл бұрын
It's clearly advertised that what you are buying is just the source code. Maybe you just weren't paying attention? I mention that the tutorials are coming soon, which they are. Hundreds of customers have bought the source code and have not mentioned any errors. I also provide access to the GitHub repository with purchase and this provides access to all updates made to the source code. For $60 you get access to a complete Uber clone, not sure how that's a scam... Not only does that not exist anywhere else online, but if it did it would be significantly more expensive. Cheers
@robbiedist
@robbiedist Жыл бұрын
@@appstuff5778 I have sent you multiple emails without any replies. I have mentioned and many others have also, that when launching the app we get a white screen after logging in/registering a users.. from there nothing happens.. can you please advise whats missing here?
@HadleyCornish
@HadleyCornish Жыл бұрын
trying to get through this tutorial... great insight so far, but I almost can't tolerate the amount of times you smack your mouth in the middle of a sentence. make me want to drop coding all together lol
@appstuff5778
@appstuff5778 Жыл бұрын
Then quit bro
@ellively7887
@ellively7887 Жыл бұрын
@Yeiner2109
@Yeiner2109 Жыл бұрын
Hola amigo excelente Tutorial y muchas gracias por el contenido...soy latino no hablo inglés, pude usar el traductor pero quería llamar tu atención todo iba bien hasta que me encontré con esto /* 2023-01-02 16:13:10.080407-0600 UberSwiftUITutorial[53921:2525819] [UserSession] maps short session requested but session sharing is not enabled */ podrias ayudarme por favor ? he buscado posibles soluciones y nada
@herrkus
@herrkus Жыл бұрын
HELP! When I type in this code: extension LocationSearchViewModel: MKLocalSearchCompleterDelegate { func completerDidUpdateResults(_ completer: MKLocalSearchCompleter) { self.results = completer.results } } I receive a message stating :Redundant conformance of 'LocationSearchViewModel' to protocol 'MKLocalSearchCompleterDelegate' How to fix this?
@user-mh8fd2vd1m
@user-mh8fd2vd1m Жыл бұрын
@AppStuff can I hire you to build me an app? Do you have an email or somewhere I can contact you on?
@appstuff5778
@appstuff5778 Жыл бұрын
Contact me at dowless.stephan@gmail.com
@user-mh8fd2vd1m
@user-mh8fd2vd1m Жыл бұрын
@@appstuff5778 I bought both of your Uber courses too
How to Get User Location on a Map - Swift
26:11
Sean Allen
Рет қаралды 62 М.
Data Flow in a SwiftUI App
33:15
CodeWithChris
Рет қаралды 53 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 184 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 19 МЛН
DC iOS: SwiftUI Architecture and Best Practices
1:15:19
Dev Community
Рет қаралды 20 М.
MapKit Updates 2024 : Get Place Details With Swiftui
6:43
ProgrammingWithAPurpose
Рет қаралды 130
iOS 18.1 - Apple Intelligence is INSANE! (20+ New Features)
12:10
Brandon Butch
Рет қаралды 159 М.
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 261 М.
Learn the Essentials of Swift in one hour
58:14
Paul Hudson
Рет қаралды 180 М.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 751 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 158 М.
What if my Intel CPU explodes??
14:20
Paul's Hardware
Рет қаралды 54 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 533 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 477 М.