Build Your FIRST iOS App For Beginners (2024) - Tutorial

Поділитися
Вставка
  • Опубліковано 7 лют 2025
  • In this video, we'll be showing you how to make your very first iOS app in Xcode using SwiftUI. This tutorial is perfect for beginners, so if you're just getting started with app development, this is the video for you.
    We'll start by walking you through the process of setting up Xcode and creating a new project. From there, we'll show you how to use SwiftUI to build the user interface of your app. You'll learn how to add elements such as text fields, buttons, and images to your app, and how to customize their appearance and behavior.
    As we progress, we'll also cover some of the more advanced features of SwiftUI, such as how to use data binding and how to create custom views. By the end of this tutorial, you'll have a solid foundation in iOS app development and will be well on your way to creating your own apps.
    So if you're ready to get started, let's dive in!
    💻 Source Code: / iosacademy
    🎥 Subscribe for more: www.youtube.co...
    😎 Like my teaching style? Check out some of my most popular courses! courses.iosaca...
    👉🏼 Connect (personal LinkedIn) / afrazsiddiqui
    🚀 Follow on LinkedIn / ios-academy
    ** Popular Series
    Building Instagram: courses.iosaca...
    Building TikTok: / @iosacademy
    SwiftUI for Beginners: ios-academy.te...
    ** Get Skillshare free for 2 Months and learn iOS
    www.skillshare...
    ** Manage all your investments from app earnings on Betterment!
    bit.ly/3eBwlI9
    ** Grow your own UA-cam tech channel with TubeBuddy:
    www.tubebuddy....
    #swift #beginners #iOSDeveloper

КОМЕНТАРІ • 198

  • @filipjakub6303
    @filipjakub6303 Рік тому +15

    That is what I need, to start my passion. THX

  • @jasonluckey2214
    @jasonluckey2214 2 роки тому +50

    Thank you for your very well put together teaching style. Everything is explained in a way that makes sense to a novice like me. I appreciate both your patience and your knowledge. It is a pleasure learning from you.

    • @iOSAcademy
      @iOSAcademy  2 роки тому +1

      You're very welcome!

    • @baddiezone
      @baddiezone Рік тому

      I agree , it was very clear and to the point, no extra context that wasn’t unneeded i enjoyed watching this ❤

  • @sabanaazul3898
    @sabanaazul3898 2 роки тому +9

    it's insane the amount of videos you are sharing with us, thank u!!!

  • @slavioli
    @slavioli Рік тому +39

    Thank you! That was so much fun. I just started coding and this was very easy to follow.

  • @martygo
    @martygo 10 місяців тому

    One word to rank this content: awesome 🤩 . Congrats.

  • @DR20005
    @DR20005 Рік тому +24

    Hey!
    Probably because it is outdated, but the tutorial no longer works for me. I get an error when trying to add the emojis to the enum. Here is the workaround:
    import SwiftUI
    enum Emoji: String, CaseIterable {
    case checkmark = "✅"
    case cross = "❌"
    case wrench = "🔧"
    case sleepy = "💤"
    }
    struct ContentView: View {
    @State var selection = Emoji.checkmark
    var body: some View {
    VStack {
    Text((selection.rawValue))
    .font(.system(size: 150))
    Picker("Select Emoji", selection: $selection) {
    ForEach(Emoji.allCases, id: \.self) {emoji in
    Text(emoji.rawValue)
    }
    }
    .pickerStyle(.segmented)
    }
    .padding()
    }
    }
    struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
    ContentView()
    }
    }

    • @aatishmehta9878
      @aatishmehta9878 Рік тому +2

      thankyou very much for your code i am new to swift and just saw the video do the same but still get the error but tried to run your code it workls perfectly well . @DR2005

    • @grantmataicross8825
      @grantmataicross8825 Рік тому +1

      I wish he would change the title of the video to not say 2024 if the code doesn't even work in January of 24.. I had the same problem and am brand new to Xcode, and its taken me over an hour to think of looking in the comments for the solution.. Thanks for the help!

    • @dbloyd2
      @dbloyd2 5 місяців тому

      Thank you. I have been wanting to build an iOS app for 15 years. Today I pulled up this tutorial and getting an error. My Xcode is 1 version higher. I guess every version changes the code to force developers to have to rewrite their code every year.

    • @kungharaldd
      @kungharaldd 5 місяців тому

      It ran fine for me with latest version of Xcode

    • @axsh970
      @axsh970 4 місяці тому

      THANK YOU i was scratching so hard why wasnt it working for me, did chatgpt everything and I was like am i Blind?? LOL

  • @jhavikash2474
    @jhavikash2474 10 місяців тому

    It's very helpful for me Thanks brother
    😊

  • @miguelconstantino-guzman5272
    @miguelconstantino-guzman5272 3 місяці тому

    Very helpful! Thank you so much! 😄

  • @merion297
    @merion297 Рік тому +2

    😁 Entered that enum part. The same as yours. For you, there's no issues. For me, »Consecutive declarations on a line must be separated by ';'«
    This is a great beginning. 😂 Did Apple change the syntax in the past year?
    Thanks for the tutorial btw, greatly appreciated! 🙏

    • @NayarJoolfoo
      @NayarJoolfoo Рік тому +2

      same here :(

    • @Ymitzna
      @Ymitzna 10 місяців тому +1

      Sameeeee

    • @lekaumamabolo816
      @lekaumamabolo816 9 місяців тому

      For those that get here and need help,
      declare (create) your enum like this:
      enum Emoji: String, CaseIterable {
      case 👩🏾‍🚀;
      case 😀;
      case 👨🏾‍💻;
      case 🥰;
      }
      to get "rid" (fix) the error mentioned in the comment
      #April2024

    • @fooskies3152
      @fooskies3152 6 місяців тому

      Try this :)
      enum Emoji: String, CaseIterable {
      case salute = "🫡"
      case soccer = "⚽"
      case cityscape = "🏙"
      case balloon = "🎈"
      case cool = "😎"
      }

  • @veljkoradic4646
    @veljkoradic4646 2 місяці тому

    Mate , Now I’m fully ready , I want more!

  • @robertlewis6543
    @robertlewis6543 2 роки тому +23

    What's in the 'RickandMorty' folder? lol Great video!

    • @Jay-vg8xc
      @Jay-vg8xc Рік тому +5

      Nudes obvs 😅😂

    • @jamo9008
      @jamo9008 Рік тому +1

      Not stuff! I can tell you that!

  • @WoolleyWoolf
    @WoolleyWoolf 9 місяців тому +1

    Very very articulate and good talker. No teleprompter but everything on the fly. Great job. Maybe slow down and go easy on the concepts/jargon/scary computer geeky nerdy terms for the newbies.

  • @luispagarcia
    @luispagarcia Рік тому +3

    Really fun project! Thanks!

  • @charlning7603
    @charlning7603 Рік тому +2

    Thank you so much for posting this video! I found the feeling of being a software developer back!

  • @alexisk5978
    @alexisk5978 2 місяці тому

    THANK YOU!!!

  • @TravelEverywhere25
    @TravelEverywhere25 2 роки тому +2

    Thanks for making this video , i really enjoyed making my first ios app

  • @eruseicode
    @eruseicode Рік тому +1

    That was so fun!

  • @JasonHouse82
    @JasonHouse82 6 днів тому +1

    Easy to convert to Android when done????

  • @IceCream7634Scratch
    @IceCream7634Scratch 25 днів тому

    Good video

  • @PorchiaDallas
    @PorchiaDallas 9 місяців тому

    This video is for those who are familiar with code. Great video if you want to follow the leader.

  • @rishangprashnani4386
    @rishangprashnani4386 Рік тому +3

    I have built an app and want to test it on my iphone. Do I need apple developer program for that?

  • @alexjiang1563
    @alexjiang1563 11 місяців тому

    you can also hit the fn key to get emojis if you have it in settings

  • @ninjaasmoke
    @ninjaasmoke 7 місяців тому

    Please make this an entire series

  • @mahamedmusse5942
    @mahamedmusse5942 5 днів тому

    Idk if its only for me but the Xcode 16.5 is extremely slow.Like it takes 2 min to run a print( "hello ,playground ").Is that normal cause it dont seem normal tbh

  • @glenn_r_frank_author
    @glenn_r_frank_author 11 місяців тому

    Do you have another video that shows me how to export the app to run on my iphone or ipad? Do you HAVE to publish it to the apple app store to do this or is there a way to install it on a device without the app store?

    • @janice5083
      @janice5083 11 місяців тому +1

      To run the app on your iPhone, you'll need a cable to connect your devices. I think you'll be able to run it for 14 days; after that, you'll either have to plug in your cables to install it again or join the Apple Developer Program, which costs approximately $99 per year.

    • @glenn_r_frank_author
      @glenn_r_frank_author 11 місяців тому

      @@janice5083 Thanks.. so just the USB connection between the ipad or iphone and my laptop I guess? Yeah i just would like to see it actually running on the device before. I also thought the cost of the Apple Dev Program was more than that. Thanks.

  • @frankl7694
    @frankl7694 Рік тому +7

    What happens if I have everything setup exactly the way shown in the video leading up until 7:40 and after the third emoji on line 11 it says 9 in bright red and has a bar with white text saying Consecutive declar... please help I'm so confused

    • @pearlroselllusterio-cz8le
      @pearlroselllusterio-cz8le Рік тому +1

      encountered the same error

    • @mykolasenyk1
      @mykolasenyk1 Рік тому

      Hey man! I've just been faced with the same issue. How did you solve it?

    • @frankl7694
      @frankl7694 Рік тому

      @@mykolasenyk1 I actually gave up because I couldn't figure out how to sole it, let me know if you come across anything

    • @Hrammal15
      @Hrammal15 Рік тому +3

      I fixed it by changing the emojis

    • @_1_112
      @_1_112 Рік тому

      @@Hrammal15 thank you bro. it was resovled by doing so

  • @sainttiago012
    @sainttiago012 Рік тому

    Thank you so much for this!

  • @Passion1111
    @Passion1111 10 місяців тому

    Very good video thanks bruh

  • @la.vibracion
    @la.vibracion Рік тому

    incredible teacher

  • @nancyforcey7454
    @nancyforcey7454 8 місяців тому

    Thank you!!

  • @rudedog979
    @rudedog979 8 місяців тому

    Many thanks for your channel and videos...although only a year old, the xcode I downloaded today has some slightly diff options. but overall, great beginner video, just what I needed.

  • @BrandonHall-rd2sp
    @BrandonHall-rd2sp Рік тому +1

    Does this app work on mobile?

  • @edkfilms
    @edkfilms Рік тому

    Thanks for sharing this video

  • @AyoubErrbayeb
    @AyoubErrbayeb 11 місяців тому

    cool video)

  • @Ryland-tu6pj
    @Ryland-tu6pj 6 місяців тому +6

    vid idea: one and a half hour of swift explanation

  • @johnaew.1781
    @johnaew.1781 11 місяців тому

    omg thankyouuuu!! but is there a way to install it onto an actual mobile device? or is the only option to try it out in the simulation mode?

  • @kwamenadadson
    @kwamenadadson Рік тому

    Thanks buddy

  • @Motawa88
    @Motawa88 Рік тому +2

    for some reason Xcode is super slow on my m1 MacBook Air. Even VS runs better lol. The canvas /preview can't even load

  • @AkbarshahJumanazarov
    @AkbarshahJumanazarov 2 роки тому

    Thank you for your effort, this video was helpful!

  • @FederikoKorili
    @FederikoKorili Рік тому

    Thank you !

  • @paidfadez
    @paidfadez 10 місяців тому

    What computer are u using ?

  • @garshalotfi834
    @garshalotfi834 Рік тому

    Awesome tutorial!Big thanks to author

  • @SiennaCommare
    @SiennaCommare 7 місяців тому

    How do you start a second page?

  • @inspirethecourage
    @inspirethecourage Місяць тому

    OK super new guy here! I went and can NOT find Code in the ios store! Did they change the icon that contained the hammer on it? There not there! Please help.! Thank you!

  • @codestarrunner
    @codestarrunner 10 місяців тому +7

    The current version of Swift won't work with the code in this video, it seems. Here's what works for me:
    import SwiftUI
    enum Emoji: String {
    case angel = "😇"
    case wavingHand = "👋"
    case flag = "⛳"
    case car = "🚘"
    static var allCases: [Emoji] {
    return [.angel, .wavingHand, .flag, .car]
    }
    }
    struct ContentView: View {
    @State var selection: Emoji = .angel
    var body: some View {
    NavigationView {
    VStack {
    Text(selection.rawValue)
    .font(.system(size: 150))
    Picker("Select emoji", selection: $selection) {
    ForEach(Emoji.allCases, id: \.self) {
    emoji in Text(emoji.rawValue)
    }
    }
    .pickerStyle(.segmented)
    }
    .navigationTitle("Emoji Lovers!")
    .padding()
    }
    }
    }
    #Preview {
    ContentView()
    .modelContainer(for: Item.self, inMemory: true)
    }

  • @glenn_r_frank_author
    @glenn_r_frank_author 11 місяців тому

    So, because the title text is a "title" is that why it shows at the top in spite of the fact that the emoji and picker are above it in the code? Is there any reason that the NavigationTitle could not be in the code before the emoji code ... just for programmer sanity of remembering what order things are going to display on screen? or does it have to be in this order?

  • @allenclendenning3428
    @allenclendenning3428 Місяць тому

    I am getting an error that says enums must not contain stored properties

  • @Girlsgirl03
    @Girlsgirl03 Рік тому

    I have the best ever app idea ever I need to make it

  • @cihanciftci08
    @cihanciftci08 Рік тому +1

    thanks this examples.. i tried but why i taking this error "Cannot infer contextual base in reference to member 'segmented' i use macOs Cataline.Xcode 12.4

  • @theplanechannel5522
    @theplanechannel5522 8 місяців тому

    App name?

  • @bihireboris3407
    @bihireboris3407 6 місяців тому

    THO I like this, It Emphases on the output than what the views are, What is the NAvigationView, what space does it occupy on the screen, what are the multiple things can we do on those individual views?

  • @moshudoduwade219
    @moshudoduwade219 Рік тому

    Many Thanks😎

  • @faengelm
    @faengelm Рік тому +1

    Well done. How do I make it run on my iPhone?

  • @KEEVVY
    @KEEVVY 2 місяці тому

    Hi do you have a video explaining how to monetize a app, I made my first game, I know I have to pay apple 99$/year just to upload it but now I found ads over app came from 3th party like google or unity, I also understand I will need to write a policy for the app if I use ads & even host it on a website, I don't really understand how the add will be integrated in app, I will need to modify my swift game code, how it's all this done, sounds more complicated than just making the app

  • @LebenWerden
    @LebenWerden 9 місяців тому

    If I execute print, I want the print output currently in the console to be cleared, and the new print output to appear there. It's annoying to click on the trash can icon every time. I haven't found anything in the settings.

  • @HyperboreanJim861
    @HyperboreanJim861 Рік тому

    Can I build the app from my android phone? I don't have a desktop or a laptop.

  • @victorriurean
    @victorriurean 2 роки тому +1

    gl learning everyone

  • @jessicapdance
    @jessicapdance Рік тому

    Hello I have a question -- for Picker part of your code I received this error "Accessing State's value outside of being installed on a View. This will result in a constant Binding of the initial value and will not update." but couldn't find anything on Stack Overflow. How can I resolve this issue?

  • @BunFrFr
    @BunFrFr 5 місяців тому

    Anyway to do this without a Mac?

    • @BwnnyRxbbit
      @BwnnyRxbbit Місяць тому

      just get a Mac. Windows sucks

  • @BRad-mu6qr
    @BRad-mu6qr Рік тому +1

    Thank you for sharing. Is there an app for the or is it just for the computer

    • @iOSAcademy
      @iOSAcademy  Рік тому +1

      The video shows how to build an actual app for it

    • @ytinfluenza5804
      @ytinfluenza5804 Рік тому

      @@iOSAcademydo u have any app similar to this that can be made on Windows

    • @ytinfluenza5804
      @ytinfluenza5804 Рік тому

      @@iOSAcademyalso after we make this app are we able to publish the app in App Store?

  • @OOAK-Ireland
    @OOAK-Ireland Рік тому +6

    sorry but you are talking about all different sings such as dollar sign, the @ etc etc. what does it all do? this is just follow the leader, but you are not explaining why.

    • @ThePerfectBalls
      @ThePerfectBalls Рік тому +1

      G-O-O-G-L-E

    • @CousinJimbob
      @CousinJimbob 4 місяці тому +1

      That’s redundant to reply “google” to someone not understanding a video they likely googled to find. Lol I think learning how to learn is important but that was a valid criticism of this video.

  • @zbz1536
    @zbz1536 6 місяців тому

    this is feeling a lot like React. it wasn't like this when I did iOS dev 7 years ago lol

  • @KrzysztofBob
    @KrzysztofBob 7 місяців тому +1

    Nothing like to hit a brick wall that quickly ... error: Value of type 'Emoji' has no member 'rawValue' ???

    • @GiorgiGvichiani-pw6ht
      @GiorgiGvichiani-pw6ht 6 місяців тому

      same

    • @Rajenp0
      @Rajenp0 5 місяців тому

      enum Emoji: String {...your emojis go here}
      You probably forgot to put 'String' in the declaration

  • @Meltdown_Gaming
    @Meltdown_Gaming 6 місяців тому

    I've been programming for years now, but I'm new to swift. I still got lost in this beginners tutorial. you never explained some things that you did, such as the "." you added at 7:14

  • @JeffWatters-w6f
    @JeffWatters-w6f Рік тому

    I'm a C-programmer from way back. Barely recognized the code here. Nice work though. So I have the application, which is cool, but the goal is to get it on my phone. Where's that video?

  • @zabaizabai2
    @zabaizabai2 2 роки тому +2

    But how to get the app in the store?

    • @iOSAcademy
      @iOSAcademy  2 роки тому +1

      I have a dedicated video on this

    • @PaulTurley81
      @PaulTurley81 2 роки тому

      ua-cam.com/video/bz_KJdXylh0/v-deo.html on this video

  • @wuyanchu
    @wuyanchu Рік тому +2

    brilliant tutorial, thx and god bless you and the world.. regards from hong kong ^_^

  • @moshudoduwade219
    @moshudoduwade219 Рік тому +1

    I built the app how do I put the app on my iPhone?

    • @iOSAcademy
      @iOSAcademy  Рік тому +1

      You can connect your phone to your computer & run to your iphone

  • @RachelGatto
    @RachelGatto Рік тому

    Do i have to have a mac? i dont see it in the microsoft store

    • @BwnnyRxbbit
      @BwnnyRxbbit Місяць тому

      Yes or get a virtual Mac setup

  • @2goboyz
    @2goboyz Рік тому +1

    Wow I was the 700th like

  • @navneetmittal4809
    @navneetmittal4809 Рік тому

    you made so easy to understand, Thank alot

  • @АлексейВолович-н7к
    @АлексейВолович-н7к 9 місяців тому +1

    thise emoji enum doesn't work

  • @omotayojuliana6489
    @omotayojuliana6489 Рік тому

    Please I want to learn a step by step process of creating an app this one is confusing me

  • @kuroshiromi
    @kuroshiromi 11 місяців тому

    What if my computer doesnt support xcode?

  • @RobertFixit
    @RobertFixit 11 місяців тому

    Let me see if I can make something based on this video alone. I will update.

  • @Slipee-me8bi
    @Slipee-me8bi Рік тому

    Ty

  • @WoolleyWoolf
    @WoolleyWoolf 9 місяців тому

    Don’t worry about the jargon. It’s best to open the stuff up, do each 1 by 1 like a cooking recipe, then voila!
    Doing all in 1 go after watching the whole cooking video will be like 😮

  • @jamiem7740
    @jamiem7740 Рік тому +1

    i just saw your video it almost seems easy enough for a kid do this, what i would like to do for myself is to build a app with contents for fantasy football

  • @its0300
    @its0300 Рік тому

    reminds me a lot of Jetpack Compose

  • @robert06052
    @robert06052 Рік тому

    How come there is no swift controller file?

    • @iOSAcademy
      @iOSAcademy  Рік тому

      Bc this SwiftUI which is a different ui framework

    • @robert06052
      @robert06052 Рік тому

      @@iOSAcademy Thanks for your response. How do I change the framework?

  • @iceshadow625
    @iceshadow625 Рік тому +1

    Wow Swift is a very bizarre language. I’ve worked with C++, Java, JavaScript, PHP, and SQL and parts of it look like it wants to combine JavaScript with PHP. But the no ; at the end of each line is really messing with me.

  • @WoolleyWoolf
    @WoolleyWoolf 9 місяців тому +9

    And after building such simple it effective apps, make sure to have unethical super high subscription pay walls for users - it’s a joke.

    • @nateblanch5045
      @nateblanch5045 5 місяців тому +1

      I mean Tbf devs deserve money for their work but yeah I agree. a lot of apps have ridiculous prices lol

    • @WoolleyWoolf
      @WoolleyWoolf 5 місяців тому

      @@nateblanch5045 id rather choose microsoft 365 annual subscription at $150 than an indie printer app for $150 annual lol. So dumb.

  • @teo_d_david
    @teo_d_david Рік тому

    When i manage to buy my first mac, this will be my first app. Thank you so much! 🎉🥳

  • @jayblack8691
    @jayblack8691 Рік тому

    Doesn’t work on code Mac studio

  • @brmixes_
    @brmixes_ Рік тому

    bro can you do one for a voice recording app

  • @Victor-oy8bj
    @Victor-oy8bj 2 роки тому +2

    how did you expand without moving mouse at 2:50??

  • @blenxoid
    @blenxoid Рік тому +3

    Can I download Xcode on windows?

  • @HyperAnimated
    @HyperAnimated Рік тому +2

    Dec. 2023 - So you don't have to dig in the comment replies - anyone hitting the "Consecutive declarations on a line must be separated by ';'" error when entering emojis, just change the emojis. They apparently don't have to be exactly what the creator entered, after fixing the first three, my fourth was a ninja and the error cleared.

  • @MissssMegan
    @MissssMegan Рік тому

    But what if you do not know how to code?

    • @iOSAcademy
      @iOSAcademy  Рік тому +1

      I've got tons of videos to teach you :)

  • @edcastle9821
    @edcastle9821 Рік тому

    I will have to watch it more than once...I got lost :(

  • @DeclanLawrie
    @DeclanLawrie 5 місяців тому

    Wow

  • @tarekozz
    @tarekozz 11 місяців тому

    It feels so much pain I'm a LUA, HTML, CSS Developper but this thing oh brother it's going to be a pain to learn

  • @vuxj5
    @vuxj5 6 місяців тому

    “For beginners”
    Me after 3 mins: you lost me

  • @sushantneopaney9157
    @sushantneopaney9157 5 місяців тому

    The first thing I thought of when I saw this was that you were a little girl and I was like oh my gosh I love you so much and I love you so much and I love you so much and I love you so much and I love you so much and I can’t wait to see you soon I love you so 12:20 12:27 12:28 12:28 12:28 12:28 12:28 12:29 12:29 12:29 12:29 12:29 12:29 12:29 and I’m going home now and I’m so happy I hope you’re doing good and I’m

  • @andreaderrico9916
    @andreaderrico9916 Рік тому +1

    may I ask, using XCode or however is called, can I change the language like from the default from html CSS and js, it's the first time I've tried to make an app and especially for iPhone I don't know how it works and I already have the "application" ready as a website but it was written using html, CSS and Js.
    Or maybe you know a converter where i can put my html code and it change in a XCode i dont know

  • @Eneergy
    @Eneergy 11 місяців тому

    can the app creator know when we put our data or our photos or it is stored in some secret server please reply bro❤

  • @sparklemoss1027
    @sparklemoss1027 Рік тому +110

    Not sure why you put beginner in it lol. 🎉

    • @manzg1
      @manzg1 Рік тому

      Maybe u dumb lol 🎉

    • @AuraeRecords
      @AuraeRecords Рік тому +2

      I am so lost

    • @ggunlistedarchive969
      @ggunlistedarchive969 Рік тому +14

      because it is

    • @Jo4sh12
      @Jo4sh12 Рік тому +23

      I could not imagine a simpler app…

    • @UncensoredCowboy
      @UncensoredCowboy 11 місяців тому +9

      It’s a beginner app, but not a beginner course. You would need someone that walks you through the very basics of coding and how coding is formatted so you understand why and what is being done.

  • @TheWretchedSpawn
    @TheWretchedSpawn 8 місяців тому

    I was dying from brain failure and kidney cancer and this helped me get through esp after my cat ran away

  • @harsimarsingh8956
    @harsimarsingh8956 9 місяців тому

    Rick and morty supremacy

  • @manishah92
    @manishah92 2 роки тому

    ❤❤