Build your first iOS app with SwiftUI

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2020
  • In this livestream I'll show you how to build a complete SwiftUI app from scratch, while also teaching you the basics of Swift. Along the way I'll be answering questions that you might have, and also providing quizzes to help test your learning.
    To follow along, you'll need to install Xcode from the Mac App Store. I'll be using Xcode 12.3, but any version of Xcode after 12.0 should be fine.
    * You can download the finished project source code here: github.com/twostraws/Trekr
    * You can get the assets used in this video from here: www.hackingwithswift.com/samp...
    * You can download the free SF Symbols app from Apple here: developer.apple.com/sf-symbols/
    As well as helping absolute beginners learn some SwiftUI, this livestream is also taking place in aid of Julian House - a UK charity that provides support for vulnerable and at-risk individuals. These include men, women and young people experiencing homelessness, women and children escaping domestic abuse, adults with learning difficulties and people who need support after leaving prison.
    You can donate to my fundraising effort here: justgiving.com/fundraising/two...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 289

  • @twostraws
    @twostraws  3 ปีที่แล้ว +102

    If you've watched this and decided you want to continue learning SwiftUI, I have great news: I have a 100% free series of tutorials that teach you everything you need to know, including lots of videos, interactive tests, challenges, and more. It's called the 100 Days of SwiftUI, and you can find it here: www.hackingwithswift.com/100/swiftui

    • @gregoryallen1122
      @gregoryallen1122 3 ปีที่แล้ว +2

      Thank you so much for the videos and I gladly appreciate the knowledge. However my flags are lining up in the wrong countries. Anyway I could fix that issue?

    • @ORNAMENTS_CLO
      @ORNAMENTS_CLO 3 ปีที่แล้ว +1

      hello paul whats your social media account and email i need your help please.

    • @sureshsingh-bp4yu
      @sureshsingh-bp4yu 3 ปีที่แล้ว

      Mkmmmm

    • @user-yq4xy8ts6r
      @user-yq4xy8ts6r 3 ปีที่แล้ว +1

    • @MDHridoy-je2cu
      @MDHridoy-je2cu 2 ปีที่แล้ว

      nice vro

  • @user-qo9ix6ut6b
    @user-qo9ix6ut6b 2 ปีที่แล้ว +11

    My guy is giving everything he earns with his hard work to the charity this is what i call a humble person

  • @daz9882
    @daz9882 3 ปีที่แล้ว +49

    I wonder why would someone came and dislike the video, Paul took his time to do Swift beginner a favor. We gained many knowledge from Paul's web too, big thanks to Paul.

    • @RecentCha
      @RecentCha 3 ปีที่แล้ว +1

      Lucifero got big mad

    • @artemisfowl9002
      @artemisfowl9002 3 ปีที่แล้ว +1

      you cant be this dense and stupid.. practically every video on youtube has at least a few dislikes especially those with as many views as 200k, the vast majority of us appreciate the effort he took to put this out, quit living under a rock

    • @FirasHasanAwad
      @FirasHasanAwad 3 ปีที่แล้ว +2

      Totally agree, I mean this person took from his own time to gather and put this material and sat for 3 hours trying to simplify it for no charge, if you don't like it just skip ahead, no need to be a douchebag

    • @alanv3185
      @alanv3185 2 ปีที่แล้ว +1

      Lol this is TH-cam. Someone could post a video saying they beat cancer and it'll still have dislikes. Thats not even an exaggeration lmao

    • @aaww8663
      @aaww8663 2 ปีที่แล้ว

      Well that’s why TH-cam removed it lmao!

  • @solutionsagent
    @solutionsagent 3 ปีที่แล้ว +43

    Phenomenal video - I've been trying to learn Swift for a while now and your instruction was just so very clear... you've kicked open the door open for me. Thank you!

  • @arifi5835
    @arifi5835 3 ปีที่แล้ว +1

    Thank you Paul! Awesome teaching. I am really happy to stumble upon your videos at the beginning of my swiftUI journey

  • @MrPB3N
    @MrPB3N 3 ปีที่แล้ว +5

    This has finally cleared my confusion about structs, classes, ContentViews, parameters, etc. I always conceptualized structs and classes as these crazy scary things, but your explanation of them as data structures made perfect sense. I was so confused whenever someone in a tutorial made a custom data type, but no longer! I would pay for more walk throughs like these.

  • @Ps3JessicaBr
    @Ps3JessicaBr 2 ปีที่แล้ว +3

    As a second semester student how just started to learn swift, I thank you so much for all this. All the knowledge shared here makes me always come back to learn more during my free time.

  • @B0st0nPlaysMC
    @B0st0nPlaysMC 3 ปีที่แล้ว +2

    Thank you for walking me through my first app! Great video, can't wait to continue making apps.

  • @XortinPJ
    @XortinPJ 3 ปีที่แล้ว +3

    Great content to get started with development in Swift, simple to follow and I actually managed to get the code working on my own simulated iPhone11. Big thanks!

  • @mcsquidinc.4648
    @mcsquidinc.4648 3 ปีที่แล้ว

    I loved this video! As a final touch-up, I also added a bit of code to make the discover tab a random location from the bunch, so as to transmit the "discovery" of a new place to the user

  • @samdeshp
    @samdeshp 3 ปีที่แล้ว

    Really glad I stumbled upon this video. Paul is an amazing teacher and equally nice human being. Thanks.

  • @garrett3338
    @garrett3338 3 ปีที่แล้ว

    This video alone is an incredible source of info! Thank you Paul for sharing your hard work.

  • @erichklapperton2907
    @erichklapperton2907 ปีที่แล้ว

    Thank you for this very helpful course! I have just started to get into Swift and was able to follow this course well and had a working app as a result! The concept of learning on a concrete task is very good. More of this please!

  • @JudgeRich
    @JudgeRich 3 ปีที่แล้ว

    Insanely helpful for getting a general overview for a variety of different topics (@Bindings, Navigation and Tab View, etc. Really great Video, and you are really nice

  • @jonothen2212
    @jonothen2212 2 ปีที่แล้ว

    Bro, why are you doing this?
    this is incredible, very easy to follow, you speak concisely and the pace of this is just amazing
    I appreciate it, man

  • @PetePeteRepeat
    @PetePeteRepeat 2 ปีที่แล้ว +4

    11/10 video... sick easy app, alongside fantastic descriptions of each of the associated concepts!

  • @kalpetkoff
    @kalpetkoff ปีที่แล้ว

    You are one of the best teachers I've ever had the privilege to watch. Thank you, Paul!

  • @cjoarder
    @cjoarder 3 ปีที่แล้ว +4

    Wonderful session. Thank you very much for putting this tutorial together. It was awesome. I am a newbie and learned quite a lot from this tutorial. I will check out the other tutorials that you mentioned. God bless you!

  • @mrd.j.2303
    @mrd.j.2303 2 ปีที่แล้ว

    I learned a lot in this video. I'm excited to watch your other ones.

  • @juanuribe8876
    @juanuribe8876 ปีที่แล้ว +1

    As a person who has never used SwiftUI before (even with a programming background) this video was soooooo helpful and it really helped me kickstart my iOS development a buuuunch.
    Thank you so so much Paul! :)
    (Hope you had a nice birthday

  • @loveyou6844
    @loveyou6844 3 ปีที่แล้ว

    this is so so so helpful for beginners, thank you Paul for the lesson!

  • @bhaminisundararaman6080
    @bhaminisundararaman6080 3 ปีที่แล้ว +1

    I'm 30 min into the video and I can already say, I like it VERY MUCH. It's very informative. Definitely giving a like!!

  • @jacekmalczyk1766
    @jacekmalczyk1766 2 ปีที่แล้ว

    This is a great introduction to SwiftUI. Thank you for this applied knowledge!

  • @AnnBurgess00
    @AnnBurgess00 3 ปีที่แล้ว

    No problem with people posting quiz answers on the chat window because you went full screen. Writing after quiz 1 - this is just what I was looking for - something to make a bridge from Swift Playgrounds to something rather more practical and useful. Very clearly put across. Thank you!

  • @andrewharrison2461
    @andrewharrison2461 ปีที่แล้ว

    This is fantastic and you're phenomenal teacher. Bravo. Can't express how helpful this was.

  • @liberstina
    @liberstina 3 ปีที่แล้ว

    Paul, thank you very much! Your video and the course are very helpful!

  • @tojal
    @tojal 2 ปีที่แล้ว +1

    Great way to start understading SwiftUI, thank you 😃

  • @Khurr
    @Khurr 3 ปีที่แล้ว

    This is truly awesome Paul...I have to admit, you have way more patience than I do, I would be playing wack-a-mole in the chat section with these idiots just disrupting everybody else's studying and trying to follow your great content...it's just insane to me how some people can be that inconsiderate...many thanks again!

  • @wastingtime9152
    @wastingtime9152 3 ปีที่แล้ว +1

    Great Stuff from a seemingly great individual. Giving to others as a present to himself.

  • @thegirlfrommoon
    @thegirlfrommoon 2 ปีที่แล้ว

    Best for beginners without any coding experience. Thank you Paul!

  • @gaskelldave
    @gaskelldave 3 ปีที่แล้ว +1

    Brilliant, thanks Paul. This takes me back to the mid ‘90s when I fist learnt to program on Mac Quadras and Performas using Thinks Pascal, ResEdit for the GUI and the Apple QuickDraw toolbox. Thanks again, Dave.

  • @MRTACHE
    @MRTACHE 2 ปีที่แล้ว +1

    Thank you so much!!! Been looking for a detailed tutorial like this.. Thanks one again bro..

  • @DmitrySharabin
    @DmitrySharabin 3 ปีที่แล้ว +1

    This stream is brilliant! Thank you very much!

  • @ivarvaw
    @ivarvaw 3 ปีที่แล้ว +2

    Released by first app and already made a few sales. Coudn't have done it without you Paul. Thanks for all your tutorials!

    • @JamesQHolden
      @JamesQHolden 3 ปีที่แล้ว

      How has your sales grown? I'm looking to get into coding

    • @ivarvaw
      @ivarvaw 3 ปีที่แล้ว

      @@JamesQHolden First month around 50 euros, then 100, then 200, then 300. Now back to 200. Haven't done any marketing though. And it's nice to earn some money on the side :). Will start with marketing in a month and see if I can 10x it.

  • @pointer333
    @pointer333 ปีที่แล้ว

    Paul, excellent tutorial. I will be back for PLENTY more!

  • @ghanshyamgupta6020
    @ghanshyamgupta6020 ปีที่แล้ว

    What a brilliant introduction to Swift:SwiftUI. Excited to build my first app🎉 belated happy birthday dude

  • @youngcoder7403
    @youngcoder7403 2 ปีที่แล้ว +1

    I was able to complete this project on the iPad using Swift Playgrounds. I had to make a few tweaks here and there. I’m lucky I’m already a JavaScript goat. So I was able to figure out why images and flags weren’t showing at first. Thank you so much for making this tutorial. I feel like I can get a lot of app ideas made now on my iPad Pro confidently.

    • @ckarthik2025
      @ckarthik2025 ปีที่แล้ว

      Could you please make me understand the flag part because I’m not able to display them

  • @isasramlan
    @isasramlan 3 ปีที่แล้ว

    I've just started to learn.. found your vids.. and its very helpful in my learning. Thank you very much.. although I knew my appreciation is not enough.. thank you again.. wish you well ..

  • @cogncierge8589
    @cogncierge8589 3 ปีที่แล้ว +25

    What a great human being you are Paul! Thank you.

  • @williamallen4607
    @williamallen4607 3 ปีที่แล้ว +1

    I think Paul is one of the best know and most respected teachers of Swift and SwiftUI in the English speaking world, as he should be. So not 'terribly underrated.'

  • @ketuladesara3043
    @ketuladesara3043 3 ปีที่แล้ว

    I loved it amazing experience definitely going to check out the course in comment 100 days of swiftui

  • @PierluigiLuceri
    @PierluigiLuceri 2 ปีที่แล้ว

    beautiful tutorial, fantastic, beautifully conducted, I think the best on the web, compliments Mr. Hudson

  • @francoisbdc3553
    @francoisbdc3553 3 ปีที่แล้ว

    Woah, this video is incredible, I've learned so much stuff !

  • @jyotiranjanpradhan5122
    @jyotiranjanpradhan5122 3 ปีที่แล้ว

    Thank Paul. It was really interesting and I learned a lot

  • @pavloma6836
    @pavloma6836 ปีที่แล้ว

    Cant stress enough how cool this lesson is! Thnx

  • @hilalbtn8251
    @hilalbtn8251 3 ปีที่แล้ว

    thank you Paul, and happy birthday :)

  • @mrglwatson
    @mrglwatson 3 ปีที่แล้ว +2

    Great tutorial and I have learnt more stuff.

  • @giorgisamkharadze5261
    @giorgisamkharadze5261 ปีที่แล้ว

    Teaching us on his birthday while making charity stream. WHAT A LEGEND!!!!!

  • @davideareias7876
    @davideareias7876 3 ปีที่แล้ว

    Today i have finished all my exams soo i decided what a better thing to do than creating my own app. I heard ios app would be easier and funnyer than android, and I also have an iphone.
    Having a windows pc my self i took 4 hours to install mac os on a VM and then found your amazing video and watch it all, lovethe dogs and your daughter is soo cute. Soon i will create an app like Tinder, but way better and cheaper, TY.

  • @isaiascuvula
    @isaiascuvula 2 ปีที่แล้ว

    You explain very well, I love the way you doit.congrats

  • @brothercaleb
    @brothercaleb 3 ปีที่แล้ว

    Incredible SwiftUI primer 👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽

  • @FirasHasanAwad
    @FirasHasanAwad 3 ปีที่แล้ว

    such a great video, it's like telling a story and all make sense when the story came to an end, would kindly request an advanced topic on how to connect to a database.

  • @geraldopatriciomelo5715
    @geraldopatriciomelo5715 9 หลายเดือนก่อน

    a live mais top que ja vi, olha o pet lá no fundo que lindo..... top.....

  • @govarzelf4731
    @govarzelf4731 3 ปีที่แล้ว

    thank you so much for your help!

  • @jalalbounaim
    @jalalbounaim 3 ปีที่แล้ว

    AMAZING SIR ...thanks for what your doing it's really outstanding

  • @darrenmiller3689
    @darrenmiller3689 3 ปีที่แล้ว +1

    This is such an excellent resource for those new to coding! Clearly, your site and YT channel will prove to be key in my journey. ✌🏼🖖🏼

  • @w.jane101
    @w.jane101 3 ปีที่แล้ว +3

    This video was really helpful, thank you!

  • @mrd.j.2303
    @mrd.j.2303 2 ปีที่แล้ว

    Gosh I love watching you get mad at the comments when people don't follow your directions. And that Azat was cracking me up. but this video is great. Thanks so much!

  • @max19971997
    @max19971997 3 ปีที่แล้ว +2

    One of the basics in programming print ("Hello world")
    Paul Hudson: HELLO DOGS HAHAHAH

  • @sumitmakkar15
    @sumitmakkar15 2 ปีที่แล้ว

    Thanks a lot Paul.

  • @adhyanduam0488
    @adhyanduam0488 3 ปีที่แล้ว

    Thanks for the video!

  • @mustafahany8693
    @mustafahany8693 3 ปีที่แล้ว

    thank you for great videos you made SwiftUI very easy in your website send you best greetings

  • @dinerdapps
    @dinerdapps 3 ปีที่แล้ว

    Great vid and Explanation

  • @babonneau
    @babonneau 2 ปีที่แล้ว +2

    Many thanks for the great tutorial, Paul!
    I ran into an error with the JSONDecoder and it seems that the data was not formatted as "Codable". In Xcode 13.2.1 in January 2022, I found out that adding "Codable" as following in the file Location.swift
    struct Location: Codable {
    let id: Int
    let name: String
    etc...
    }
    solved my problem.
    I hope that it can help others too.

  • @vicentepedrofermintoroarmi2997
    @vicentepedrofermintoroarmi2997 ปีที่แล้ว

    Amazin Lesson, this is my first Swift Api

  • @jrwojick
    @jrwojick 2 ปีที่แล้ว

    Awesome session. Definitely great exposure to what it can do and makes me want to dive in more. Ran into an issue on the tips display but after a bit of review, I saw that I neglected to add the else for the tips.children check. Curious about setting up json for custom data. Is that something covered in 100 days of Swift or is that more of an independent exploration on json? Thanks again!

  • @wyldmorris
    @wyldmorris 3 ปีที่แล้ว

    Watching from UK Sound level is fine

  • @JonesJr876
    @JonesJr876 3 ปีที่แล้ว

    Thanks. This was great.

  • @problemchild01
    @problemchild01 3 ปีที่แล้ว

    Best beginner tutorial on YT

  • @Bestenouf
    @Bestenouf 3 ปีที่แล้ว

    It is working. Appreciate.

  • @logusgraphics
    @logusgraphics 3 ปีที่แล้ว +1

    I just love SwiftUI, so elegant and simple

  • @marwanzaarab4080
    @marwanzaarab4080 3 ปีที่แล้ว

    Sir Paul Hudson, you're an inspiration. I've been watching your tutorials for 2 years now and have learned SwiftUI solely through your videos and website. I'm stunned that you don't have any courses for sale on Udemy. You'd easily outrank the top teachers currently listed for iOS development.

  • @jimmybotao1
    @jimmybotao1 3 ปีที่แล้ว +4

    Best SwiftUI tutorial ever!

  • @maxsid65
    @maxsid65 3 ปีที่แล้ว

    what a fantastic walkthrough. Thank you very much Paul! I am new to Swift, and I can't say I understood everything a 100%, but I was able to follow for the most part (gotta start somewhere, right? ;-). This was the first tutorial I ever watched, the first app I ever compiled in Xcode, and even though it was just a copy&paste from your video, it was still ME writing all those lines! ;-)
    I'm gonna show this to all my friends - that first app I ever made (all by myself, with no help at all of course :-b).
    Really made me feel like I achieved something. Liked & subscribed!

  • @ZhengCheng
    @ZhengCheng 3 ปีที่แล้ว

    Thanks for the video

  • @gamingcroctv4523
    @gamingcroctv4523 2 ปีที่แล้ว

    I love the quizzes sir! i just cover the chat box hehe,

  • @JohnDoe-lw4sb
    @JohnDoe-lw4sb 3 ปีที่แล้ว

    ดีมากครับ ผมชอบวิธีการสอนแบบ เริ่มจากศูนย์ เพราะทำให้เข้าใจถึงปัจจัยพื้นฐานต่าง ๆ ก่อนที่จะทำงานที่ซับซ้อนต่อไป

  • @NoahBest
    @NoahBest 2 ปีที่แล้ว

    Thank you

  • @pavunraj2449
    @pavunraj2449 3 ปีที่แล้ว

    awesome i loved all videos

  • @jakubsermette9173
    @jakubsermette9173 2 ปีที่แล้ว

    Thank you Paul! I really enjoyed this stream and for sure I will follow 100 Days if SwiftUI.
    Just one question (I am completely new to programming) - As mouse lcok is not available in pointer settings in iOS, recently I decided to write an app for iPhone that would allow to initiate it in specific applications. But now I am not sure if it is possible to do such app. I do not know if it's limited to the iPad version of iOS, or maybe the devs didn't add it yet. Could you please give me an advice on it? Thanks!

  • @Bestenouf
    @Bestenouf 3 ปีที่แล้ว +1

    At point of adding, let location: Location, it says, ‘Cannot find Location in scope’

  • @dragonstudio7917
    @dragonstudio7917 3 ปีที่แล้ว

    Thank you!

  • @davidagyakwa288
    @davidagyakwa288 3 ปีที่แล้ว

    I wrote the tabview under the Navigation view and it still works why is that

  • @bluyetiinc7553
    @bluyetiinc7553 3 ปีที่แล้ว +2

    Hi Paul, after this tutorial, which videos would you recommend next. Need more practice.

  • @guitarcoey
    @guitarcoey 3 ปีที่แล้ว

    Love this video stream! Now I want to do almost the exact same project except that instead of using UIMapkit, I want to put a static "map" (aka a PNG) into a scrollable view and click on an area to go to a content view. Any ideas?

  • @lickmyshoe182
    @lickmyshoe182 2 ปีที่แล้ว +1

    For anybody following along but using their own data - When you get to decode the JSON file, I kept running into errors. I looked over my code and everything was the same as Paul's but still I kept getting 'no key' errors and also 'Expected an array but got a dictionary' errors. This is to do with your actual JSON data file! Open Paul's example data from this tutorial and compare it against your own. Turns out I had caps in the column names that shouldn't have been there and that was enough to stop the whole project! Once I sorted my JSON file out, the project worked no problem so it wasn't a coding error, just a heads up to everyone.

  • @Bestenouf
    @Bestenouf 3 ปีที่แล้ว

    Around the “if tip.children!= nil {Label(tip.text, systemImage: ....” it cited that comparing non-optional value of type [Tip] to nil always returns true.

  • @alsafeerq82009
    @alsafeerq82009 2 ปีที่แล้ว +1

    Need more videos about creating apps using swift playground in ipad and if there is way to create internal database for the app to store pdf files or videos or any information that can be stored and used offline

    • @youngcoder7403
      @youngcoder7403 2 ปีที่แล้ว

      I just followed this whole tutorial that was meant for Xcode using the Swift Playground app on iPad Pro. I was able to successfully reproduce the app except for the part on the map where the markers are loaded up. I’m still debugging why those markers aren’t displaying. I got everything else working though.

  • @carleyburke2325
    @carleyburke2325 3 ปีที่แล้ว +1

    Hello, can you make a beginners video for turning website into iso app? Xcode 14.2

  • @nicholasrogillio4280
    @nicholasrogillio4280 ปีที่แล้ว

    Hi! Loving the tutorial. For some reason, around an hour and a half in, I’m having difficulty. It said there was an issue with location being out of scope. I finally copied and pasted everything from the location.swift file into the contentview.swift file and got it to work. Did I do something wrong when adding the new file that caused it to be out of scope? Very new to Xcode.. and macs.. and programming 😅 thanks again for the great tutorial!

  • @greetings-plus4892
    @greetings-plus4892 ปีที่แล้ว

    Paul, Thank You.
    Absolutely love the beginner tutorial. Works well in Xcode 14.3 and IOS . One quick question would be, how to associate Tips with each of the locations on scree. Synopsis: When I am on Smoky Mountains, I would have a different array of tips specific to the Smoky Mountains, versus tips that would appear for the screen displaying content for, say, Kyoto Japan...
    Please select a charity I could send 100.$ to, once answered.

  • @imagenumberinbookofchanges2418
    @imagenumberinbookofchanges2418 2 ปีที่แล้ว

    very nice!

  • @ReflectingMe2024
    @ReflectingMe2024 3 ปีที่แล้ว

    Wonderful stuff Paul, thank you. Wondered if you might do something in a future live stream similar to your Guess the Flags game, but in SwiftUI instead?

    • @twostraws
      @twostraws  3 ปีที่แล้ว

      I already remade Guess the Flag using SwiftUI, although it wasn't a livestream. Find the articles/videos starting here: www.hackingwithswift.com/books/ios-swiftui/guess-the-flag-introduction

    • @ReflectingMe2024
      @ReflectingMe2024 3 ปีที่แล้ว

      @@twostraws Oh heck! Very sorry Paul, I have missed this. Will take a look now - thank you for getting back to me so quickly too, much appreciated.

  • @aranthos
    @aranthos ปีที่แล้ว +2

    Hey Paul, while probably too much to ask I’ll try my hand anyway :D
    Would it be possible to get a sort of extension video on pulling these data points from some sort of database (fire base, even just a google sheet or whatever)?

  • @pankajsharma-oi7tk
    @pankajsharma-oi7tk 3 ปีที่แล้ว

    happy belated birthday !!

  • @GeoXY
    @GeoXY 11 หลายเดือนก่อน

    SwiftUI Guru!

  • @markaurelius61
    @markaurelius61 3 ปีที่แล้ว

    Thanks for the Christmas present, Paul!

  • @JoeDoe1
    @JoeDoe1 3 ปีที่แล้ว +2

    I going through the Unwrap course. Does someone have the solution to:
    Write code that reads the “name” key.
    let details = [“name”: “Sophie”]
    ] “Unknown” details[ “name” , default: =
    name let
    I tried every combination of I could think of.
    I’m completely stumped. Thanks.

  • @cookiesup2music
    @cookiesup2music 3 ปีที่แล้ว

    Sound issues is (someone brought it up in stream chat) is caused by XCode 12 on Catalina... no real fix other than restarting the CoreAudiod process

  • @what4401
    @what4401 2 ปีที่แล้ว

    Thx u