Build your first SwiftUI app with Swift Playgrounds 4 for iPad

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии • 173

  • @nguyenhaidung8833
    @nguyenhaidung8833 8 месяцев назад +5

    dude sharing his knowledge and flexing his beautiful family at the same time.
    Hats off to you you sir.

  • @kellimurton
    @kellimurton Год назад +2

    Oh my word! I am SO happy I found your videos! You are so easy to listen to & explain things in such a simple way! I am a preschool teacher, teaching myself Swift so that I can transition into a career in edTech. Your videos are exactly what I need. Thank You! Swift, here I come!

  • @anianii
    @anianii 3 года назад +60

    I’ve tried this earlier today. It’s actually amazing how well it runs, it’s so much smoother than Xcode on my Mac. And not just by a little margin. They even translated the error messages and UI library elements to German and other languages. Not even Xcode offers this

    • @brandontyler9278
      @brandontyler9278 3 года назад

      I'm an absolute begginer that wants to learn swift, I know this is for iPad but also for macOS, I have a MacBook Air, should I follow this guys tutorial on learning swift on Xcode or on swift playgrounds here?

    • @anianii
      @anianii 3 года назад +1

      @@brandontyler9278 In general, it would probably be a bit easier in Xcode (because the file structure and menus will look the same for you as in the tutorials), but if you don’t mind things looking slightly different, pretty much all of the tutorials will work in playgrounds too. Depending on which MacBook Air you have, the iPad might also give you a much smoother experience

    • @dominikklon1985
      @dominikklon1985 2 года назад

      how do you search error messages on google in German ? XD

    • @anianii
      @anianii 2 года назад +2

      @@dominikklon1985 Exatcly that is the problem, you have to know what the message would say in english to get any useful results 😂

    • @brudamonas8208
      @brudamonas8208 2 года назад

      @@anianii you can go to settings and change the app’s language to english

  • @patgoo2
    @patgoo2 3 года назад +1

    Paul, if Steve could see now... this is an excellent job showing how to get started with Playgrounds 4. This is what I've been waiting for.

  • @developerfriendly
    @developerfriendly 3 года назад +5

    you are a perfect teacher. thank you very much Paul

  • @Truekaruminmr
    @Truekaruminmr 2 года назад +1

    Thanks to this video. I was able to understand Swift programming. I am ZERO in programming and this made me comfortable playing with it. Thank you very much! ✌🏿

  • @HughMcBrideDonegalFlyer
    @HughMcBrideDonegalFlyer Год назад

    Love the content Paul , great work, I am new to Swift ( 25 years with Java Scala and Python ) as I am trying to build an IPad App for my son with Autism , I feel confident that I will be able to do it now and even enjoy the process. Many thanks

  • @Harrzack
    @Harrzack 3 года назад +3

    EXCELLENT tutorial! I’m a retired programmer (38 years). Having worked with c++, the missing “;” is at first disconcerting… but easy to get into. Your vid is very well presented, easy understand. Unlike so many RUclips vid, you speak at a normal pace, and there is no raucous music! 🙏🍺. Will be looking for more of your work -THANKS.

  • @nordicest
    @nordicest 3 года назад +1

    Thank you for the short intro :)! Would love to see more because I use my iPad Pro as my main device and building apps with Playgrounds is something I would like to learn more.

  • @SwiftySanders
    @SwiftySanders 3 года назад +1

    Thanks for this Paul. iPad is my favorite Apple product ever and I am excited to play with Swift Playground some more on my iPad.

  • @ScottSmithDev
    @ScottSmithDev 3 года назад +20

    Wow, this has to be one of the most pleasant videos of yours that I’ve watched, Paul! How you included your lovely daughters and that sweet pup of yours really made me smile 😊 - especially when hearing their sounds! Your enthusiasm and excitement for this huge playgrounds update really showed, and the information you shared was very informative. So glad I have a solid overview of the new playgrounds now. Thank you!

    • @Ey3n
      @Ey3n Год назад

      Scott The Woz

  • @srinivasankh
    @srinivasankh 3 года назад +1

    One of the best video on how to quickly learn SwiftUI using iPad :-) great work! definitely a good place to start learning SwiftUI

  • @blakebooie
    @blakebooie Год назад

    I’m wanting to learn to code, and then I found this app, and it’s been fun and interactive to learn the basics of coding. Your video was very helpful in my journey to learn to code, and develop

  • @mammachiaa
    @mammachiaa Год назад +1

    This is amazing!! Super simple tutorial! Thank you, Paul for making coding so easy!!

  • @jtdimension
    @jtdimension 3 года назад

    This is great! Doing this for almost "free money" here on RUclips.... tells to us that you really want to teach some great material. All the best Paul

  • @belu6914
    @belu6914 3 года назад +5

    Thank you for the great tutorial video. It inspired me to give it a try. Developing from time to time on the iPad - just for fun - is great. To me, a further tutorial on how to store data (e. g. texts) in the iCloud/CoreData with Swift Playgrounds would be phantastic - if possible.

  • @carfish
    @carfish 3 года назад +19

    I feel like this is the future of coding, at least for non technical developers. And maybe one day we'll just be able to speak to our iPad or Mac and it'll do all the work. I get it takes a bit of the romanticism of coding away, but opening it up to every single person out there that may want to build an app sounds incredible.

    • @mistymu8154
      @mistymu8154 3 года назад +6

      It is good to see how it is advancing on iPad. I would like to see full Xcode support on iPad though given that the iPad Pro is comparable to Mac performance.

  • @ntmatias
    @ntmatias 3 года назад +4

    You are a genius. I have just downloaded it, and you present a video, 8 minutes later... thanks. One question, I haven't found out how to include core data in the project.

    • @davidjimenezquiroga5638
      @davidjimenezquiroga5638 3 года назад +1

      Yes! That’s a really good question how can we include Core Data with Swift Playgrounds 4?

    • @twostraws
      @twostraws  3 года назад +2

      To the best of my knowledge this is not currently possible.

    • @brandontyler9278
      @brandontyler9278 3 года назад +1

      @@twostraws Should I follow your other hackingwithswift tutorials for begginers on Xcode or should I follow this swift playgrounds one?

  • @nwlk9262
    @nwlk9262 2 месяца назад

    Amazing simple and covering all the basics

  • @karhoshe
    @karhoshe 3 года назад

    Thanks Paul, bring me back all the joy and excitement for building iOS App with SwiftUI. Enjoy so much. 😃

  • @machaarr
    @machaarr 2 года назад +1

    Great video. I use this with students age 12 - 15, as I cannot make an app my self. Great fun, and a bit of humor as well. Thank you!

  • @ProVokeGames
    @ProVokeGames 3 года назад +2

    Love your videos keep up the great work! If it's not too much to ask, would you mind trying to do your videos in 1440p? I like to throw your stuff up on my TV and it's a bit fuzzy at the 1080p res. As always keep up the fantastic work. The GOAT of coding lessons.

    • @twostraws
      @twostraws  3 года назад

      All my new videos are recorded at 4K, but this one is an exception - the screen capture from iPad is too small to be stretched any larger than 1080p.

  • @BUdJohnson242
    @BUdJohnson242 2 года назад +1

    This is amazing thank you so much Paul! Hope you keep making iPad tutorials! Would be AMAZING if you could make something with RealityKit using the swift Playgorunds!!

  • @JeffKempster
    @JeffKempster 3 года назад

    Great Job as always Paul. I can’t believe this just came out and you have a 40 minute long video.

  • @lakeman2604
    @lakeman2604 2 года назад

    Thank you Paul! Was having trouble finding a good tutorial for the Playgrounds App and this was awesome. It even covered a couple things I was having issues with in my code and your Subsonic eliminates me spending a ton of time trying to figure that out. 😀

  • @vrajsavani
    @vrajsavani 2 года назад

    Absolutely Brilliant! This helped me understand some of the basics of SwiftUI and Introduced me well to Swift Playgrounds. Thank you 🙏

  • @mepravi
    @mepravi 3 года назад

    You’re an amazing teacher. Please make more videos like this

  • @TheDreamteam1900
    @TheDreamteam1900 3 года назад +1

    Thanks for the great tutorial, it’s very helpful, high quality and fun to watch.
    I hope you make more of iPad swift playground tutorials something like task app or ping pong game.

  • @marklamb3019
    @marklamb3019 3 года назад +2

    Thank You, Paul for the fantastic intro to Swift Playgrounds. I’m looking forward to learning to program in Swift!

  • @englandsonlim
    @englandsonlim 3 года назад +2

    Thank you Paul. Your tutorials are awesome and easily understandable. You’ve inspired me to explore iOS app making in the future.

  • @NomadicDmitry
    @NomadicDmitry 2 года назад

    Nice video! I've learned basics of SwiftUI sometime ago in Xcode, but good to know I can also try it out on iPad Playgrounds.

  • @louisewells2737
    @louisewells2737 2 года назад

    Excellent Fantastic, thank you for your tutorial. I will be watching more.

  • @DangThinh261
    @DangThinh261 2 года назад

    the handle ob tab by button is what i am looking for. Thanks

  • @Luism-tz2ey
    @Luism-tz2ey 3 года назад

    thank you so much :) we need more videos about new swift playground

  • @muelfernandez
    @muelfernandez 3 года назад

    Great tutorial. You’re such a good teacher. Thanks a lot man! I’m inspired to learn and build my own app. I’m an old school developer wanting to learn something new (who doesn’t?) Keep it up and God bless.

  • @nileshjdarji
    @nileshjdarji 3 года назад

    Awesome. Great starter video I was looking for. Thank you.

  • @Omar.Alamoudi
    @Omar.Alamoudi 3 года назад

    👏wonderful timely tutorial, thanks Paul!

    • @Omar.Alamoudi
      @Omar.Alamoudi 3 года назад

      I noticed that the app name didn't change in the Playgrounds browsing page, bug??

  • @Imos.
    @Imos. Год назад +1

    Thank you so much for the amazing video

  • @Fimpiekijke
    @Fimpiekijke 5 месяцев назад

    Thanks for the energetic teaching, it proofs what you can do with little code. Do you have some pointers how to include a map and tag a photo with location on the map. The idea is to create an app that allows someone to take a photo of a lost subject, and position that on the map so someone who lost it can visit and collect it. Around a school you find in wintertime a lot of winter cloves, would be nice to make parents happy to reunite their pair of cloves 😎

  • @im_the_raymond
    @im_the_raymond 3 года назад +1

    thanks! we want tutorial to use CoreData and cloud in this playground

  • @simonhibbs887
    @simonhibbs887 3 года назад

    Great tutorial, and very timely. Thanks.

  • @EEEricTien
    @EEEricTien 3 года назад

    A great tutorial. Thanks Paul

  • @roehrigdakota
    @roehrigdakota 3 года назад +1

    Hello this tutorial was amazing. Can you please do more Tutorials Will Swift Playgrounds 4 on iPad. Maybe building a full weather app on iPad or tutorials to better our knowledge with Swift.

  • @bobground6020
    @bobground6020 2 года назад

    Wonderful, so very helpful.

  • @tradingguy1004
    @tradingguy1004 3 года назад

    Fantastic as usual, Paul, thanks a lot!! By the way, I’d have one very big wish as a request: If you could ever show how to create a Sudoku solver (or even generator) with Swift(UI), this would be pheomenal and make a dream come true (not just about the technical aspect of how to implement the logic but also how to make a nice design etc.); it doesn’t necessarily need to be Sudoku, it can also be any other kind of (similar) puzzle (game). Just in case you feel inclined to think about these topics at any time later on :) Thanks again and keep this fabulous stuff up :)

  • @Meekismwisdom
    @Meekismwisdom 2 года назад

    6:22 list creation

  • @jamesburland
    @jamesburland 3 года назад

    Subscribed. I like your approach.

  • @OdedeCologne
    @OdedeCologne 3 года назад +1

    Excellent and much appreciated. Can we hope that coredata integration will come soon? Hard to do anything serious without it. (And that is a part of SwiftUI that is particularly messy to use without knowing a lot about the dinosaur legacy of NSObjects et al...)

  • @there837
    @there837 Год назад

    Very interactive and succinct

  • @DarylNotDead
    @DarylNotDead 2 года назад

    Hello Paul, Firstly, thank you for this video. I used it as a jump off point for a small app I wanted to write as a hobby. Much appreciated!
    That said, I do have an issue. I have installed my app onto my iPhone. The app sound (using you Subsonic package) seems to only play on headphones.
    Does the package have the ability to AVSessionROute change to speakers or headphones? If so, what is its syntax? Would dearly love your thoughts on this issue.
    Kind regards!

    • @techpro985
      @techpro985 Год назад

      Did you manage to install your app onto your iPhone without publishing first? If so, how!?

  • @chandlerzuck6396
    @chandlerzuck6396 3 года назад

    Hey Paul, can you do a tutorial on tethering this to an API like Airtable?!! I think this would be so helpful!! Thank you!!

  • @UFOSPACEMAN
    @UFOSPACEMAN 3 года назад

    You’re the best! Thank you so much!

  • @Tydox
    @Tydox 3 года назад +3

    Do you think the Swift playgrounds 4 on the iPad is enough for learning the basics of Swift UI? Can you use core data?
    I hope I can use it to learn on breaks without having to carry an extra laptop just for code.

  • @jensknaack9016
    @jensknaack9016 3 года назад

    A great video. Thank you very much.

  • @MarkGronowski
    @MarkGronowski 3 года назад

    Great tutorial thanks!

  • @DOnjaman101
    @DOnjaman101 3 года назад +1

    i have loved your tutorials for years. Just a thought, you might try using a separate stand for your mic. it rumbles as you type on the keyboard.

    • @twostraws
      @twostraws  3 года назад +1

      Sorry about that! You might have noticed this doesn't have my usual backdrop - it was recorded somewhere else, without my usual setup.

  • @jankuna9479
    @jankuna9479 2 года назад

    Thank you Paul.

  • @henryhachihung
    @henryhachihung 3 года назад

    Amazing lesson, great sharing 👍🏻👍🏻

  • @SymonDavis
    @SymonDavis 3 года назад

    Amazing, thank you for going over this for us all.
    Just one little issue I had was the deep bass noise every so often, was your mic stand on your desk?

  • @lynxAzur
    @lynxAzur 3 года назад

    Finally … Playground 4 !

  • @ionutandreiparaschiv
    @ionutandreiparaschiv 3 года назад +1

    Very useful tutorial! One question: Is there any way to share this to specific people to test it without being enrolled in the Apple developer program?

  • @AH247-qn5uf
    @AH247-qn5uf 6 месяцев назад

    Great job thank you

  • @gadgetman5210
    @gadgetman5210 3 года назад

    fantastic video thank you 😊

  • @brandontyler9278
    @brandontyler9278 3 года назад

    Should I follow your other hackingwithswift tutorials for begginers or should I follow this swift playgrounds one?

  • @wilmercb
    @wilmercb 3 года назад

    So this is the proof Playground would be soon Xcode finally on an iPad Pro!! ...let us hope!! ...your awesome!! I've have refresh and regain my interest for programing with you! I've learn some much with you! THAN YOU!! ....and to anyone looking to start learning programing in Swift, definitely take the "100 Days of SwiftUI" 👍🏼😉

  • @danielrybak4899
    @danielrybak4899 3 года назад

    This is awesome!

  • @theresakidd
    @theresakidd 2 года назад

    Paul! You are the man! I’ve been trying all week to figure out why .font.largeTitle wasn’t working for me in one of the modules with Swift Playgrounds. Can you tell why it wasn’t working? LOL! Now it’s working and I can move on with my learning, understanding what I was doing wrong. Thank you for all your tutorials and help!

  • @HankAstral
    @HankAstral 3 года назад

    This is great thankyou!!!!

  • @trip601
    @trip601 3 года назад +1

    Wow, this looks real cool. I am new to Codind. My question is: how complex can the app be, you make? Is ist just fit some small Games?

  • @rasheshbosamiya1482
    @rasheshbosamiya1482 3 года назад

    Nice tutorial

  • @michelcusson2673
    @michelcusson2673 2 года назад

    Tu es un merveilleux professeur.

  • @MoAdel92
    @MoAdel92 3 года назад

    Thanks a lot God bless your kids

  • @MeriMorMick
    @MeriMorMick 2 года назад

    😳 I sure do miss the turtle on my Commodore 64!

  • @otilionunezmaciel8951
    @otilionunezmaciel8951 2 года назад

    Have you uploaded any of your soft?

  • @edikvolsky5547
    @edikvolsky5547 2 года назад

    you are so cool ! thank you

  • @TiffanyNg100
    @TiffanyNg100 Год назад

    I love this. Is it possible if I make game cooking rice?

  • @JonJudelson
    @JonJudelson 3 года назад +1

    At the present moment is there any way to run the app on a iPhone that is connected to your iPad?

  • @Awesome奥深
    @Awesome奥深 3 года назад

    Good to try.

  • @Dingus_Tech
    @Dingus_Tech 8 месяцев назад

    I was looking in the icons menu and found that the PC icon has the BSOD

  • @antidotdotdotdotdot
    @antidotdotdotdotdot 2 года назад

    Great video just did not include what i needed

  • @lakshanhirumal
    @lakshanhirumal Год назад

    Full video available?

  • @Matt-jn1dd
    @Matt-jn1dd 8 месяцев назад

    Hi.. can you teach how to build budget app?

  • @FabricioMTL
    @FabricioMTL 2 года назад

    Can you do a tutoriel with TabView on Playgrounds for iPad

  • @schmidtbb
    @schmidtbb 2 года назад

    Nice job on the demo. I was able to recreate the app with all the components expect there is no sound playing. I am not sure why. I suspect the Subsonic needs to updated and there is no error message either.

    • @twostraws
      @twostraws  2 года назад

      Is it possible you just have your iPad on silent mode?

    • @schmidtbb
      @schmidtbb 2 года назад

      @@twostraws No sound is not off. When I select the sound to play form the resource view it plays just fine.

    • @twostraws
      @twostraws  2 года назад

      @@schmidtbb That’s not the same thing: Swift Playgrounds overrides your mute settings.

    • @schmidtbb
      @schmidtbb 2 года назад

      @@twostraws ok not sure how to unmute in swift playground. Do you know?
      ok never mind. Even though I could test play the sound within the Swift app when I play the app sound play is bound by the ipad mute setting.

    • @twostraws
      @twostraws  2 года назад +1

      @@schmidtbb Just check the mute setting for your whole iPad.

  • @Linkzelda99
    @Linkzelda99 Год назад

    Just can you directly add this to the Home Screen and if so how?

  • @PursueTheUnknown
    @PursueTheUnknown 3 года назад +2

    Is there a way to choose a simulator, to see how the app looks on an iphone 8 for example? Also, is there a way to make the app only iphone compatible, not universal, and portrait only?

    • @stephenrector4990
      @stephenrector4990 3 года назад

      I would like to know this as well. Also, can you show a tutorial of using the new package manager in Playgrounds. I tried using it to import Firebase but couldn’t get it to work.

  • @SuperMarioSplashy
    @SuperMarioSplashy Год назад

    Magic keyboards cost up to 200$.. that’s a CRAZY amount of money for the magic keyboard

  • @seanclancyguitar
    @seanclancyguitar 2 года назад

    I think this was a great video... I have a Guitar SightReading App that I want to adapt for the iPad. Everything worked... except for the sound. I can play the m4a files from the sidebar (my iPad is not muted and has the sound up 100%), Subsonic is there in the packages and clicking on the pictures works as a button. When I went to type play in ContentView, it auto completed due to the imported Subsonic). My code is exactly the same as the example. I saw that Julio Salvador Hernandez-Saca said that he figured it out... how was that? I am running an iPad 7th Generation.

    • @grapefruitiswinning
      @grapefruitiswinning 2 года назад

      Try going into Control Centre and confirming that Silent Mode (red bell w/ strikethrough) is not engaged. This initially was causing me to have the same issue as you even with volume up.

  • @carfish
    @carfish 3 года назад

    Funny, that upside down image issue has been around in iOS videos forever! Working with iPhone recorded video in Blender does the exact same thing. The fix: tilt your phone the other direction when recording video 😂 funny that Apple even has a 'correct' way to hold your phone when recording

  • @LoriWolfcat
    @LoriWolfcat 2 года назад

    Can you make another app with a login page? Also, do you know if Swift is taught in any schools? Otherwise, how was Swift learned when it first took off. I really think Swift should be taught in colleges and if they don’t, I wonder why they wouldn’t. Especially since most colleges use macs.

  • @themojoman
    @themojoman 3 года назад

    Thanks Paul, that was a great beginners tutorial!
    One finding: In split view it is possible to drag a single picture or two pictures from the photos app to Swift Playgrounds to import them to an opened playground file. When trying to import more than two pictures at once I got the error 'Cannot load representation of type public.data'. ☹️

  • @tineocedric
    @tineocedric 2 года назад

    Great vid, great teacher. On Playgrounds 4.1 (tested august 2022) the subsonic package doesn't work. Is it because it is written for a certain version of Swift and new app projects in Playgrounds use a more recent one?

    • @twostraws
      @twostraws  2 года назад +1

      Every time someone has said Subsonic isn't working, it has turned out they had their iPad on mute or their volume down to 0. Could you just check these settings? (Note: previewing a sound in Swift Playgrounds will always play it, whether or not your device is on mute. Please check the actual setting!)

  • @nsingh8655
    @nsingh8655 3 года назад

    Thank you

  • @larschristiansen3136
    @larschristiansen3136 3 года назад

    Thank you Paul. Brilliant as usual. Small remark (just to be unpleasant, I apopogize). You do not show the Playground environment, and I downloaded Playground 4 and did not find the controls you mention. Ex App button. I think that it is a pity missing the initial steps when addressing a public of beginners.

    • @eichenherzmo
      @eichenherzmo 3 года назад

      you have to be on the newest ios version to be able to use it.

  • @dgh6565
    @dgh6565 3 года назад

    Thanks for your great teaching and clip!!!
    I'd like to know how to code same project in Xcode and playgrounds simultaneously. anyone knows???

  • @NARUTOFF-sc2pv
    @NARUTOFF-sc2pv Год назад

    How to fix the consecutive line must be seprated by ;:

  • @mfaani
    @mfaani 3 года назад

    I wonder how the source control works on Playgrounds

  • @mramosch
    @mramosch 3 года назад

    Hi Paul, great introduction, thanks a lot…
    One question, though:
    Playgrounds are now supposed to be an additional DevelopmentEnvironment. So I assumed that I can test all my App’s behavior before submitting it to the AppStore.
    However, e.g. creating folders and files in your app’s public documentDirectory does not make them show up in the Files App on the iPad. When I build the very same project in Xcode and have it run on the iPad the newly created directories and files do show up right away.
    Any ideas of why this is failing in the Playgrounds App on the iPad?

  • @wailim9340
    @wailim9340 2 года назад

    Could we import MapKit into Swift playground?

  • @elonhusk1924
    @elonhusk1924 3 года назад

    Nice Video but I’ve got one question: Is it possible to get these apps on the Home Screen so I can open them from there without having to open playgrounds?