Swift: Build Your First App (2024) - iOS for Beginners
ฝัง
- เผยแพร่เมื่อ 25 ส.ค. 2024
- In this video we will build our veery first iOS/iPhone app from scratch in Xcode 12 and Swift 5. This tutorial is for absolute beginners who have never built an iOS app before. We will specifically build a Photo Generator app.
👉🏼 Connect (personal LinkedIn) / afrazsiddiqui
🚀 Follow on LinkedIn / ios-academy
#swift #beginner #firstapp
** Like my teaching style? Check out some of my most popular courses!
courses.iosaca...
Join this channel to get access to perks, code, groups, and more:
Building Instagram: courses.iosaca...
Building TikTok: / @iosacademy
SwiftUI for Beginners: ios-academy.te...
Join the iOS Academy Community: iosacademy.io/
** 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 TH-cam tech channel with TubeBuddy:
www.tubebuddy....
Stayed up til 12:30 building this on a school night. I can confirm it was worth it
Youre the real MVP
i love this kind of video because it prepares me to understand how everything works in a nutshell
Glad you enjoyed it! Dont forget to like & share!
I decided last night that my new years resoloution was to learn swift. I've done c# for nearly 10 years so I'm not expecting the leap over to it to be too intinidating although the jump from mainly server side code manipulating data to a touch interface feels VERY different.
This will be the first project I'm goig to try once xcode eventually downloads.Thanks for the video.
I’m getting started with swift rn, how is it going for you?
I've stuck with it. I very quickly made the decision to dive straight into SwiftUI which on one level feels a lot easier but is significantly different again from C# which requires a completely different mindset. Trying to do at least 30 minutes a day on it but often get more done. Just started looking at the videos from Stanford University (CS193p, Developing Applications for iOS using SwiftUI). Starts very slow but it will ramp up in complexity pretty quickly!
The year is over in 3 days and I happen to see this comment, how is that resolution going?
So I have never properly touched Swift before, but this looks very straight forward and it surprised me how it kinda has a title designer tool integrated to work with UI elements. If you've never programmed before however, I would strongly recommend learning the fundamentals first. You'll understand why this feels easy.
Great insight
What you mean by fundamentals?
@@normaaliihminen722 you have to understand the fundamentals of programming before you can dive headfirst into something like this that also incorporates graphic design. It doesn't really matter what language you learn (as long as it's not esoteric xD), as long as you learn it, because it will give you a fundamental understanding of how things like functions, lists, variables, scopes, etc. work. I would highly recommend Python, on account of its simple syntax, forgivability and versatility, as well as fantastic documentation and a massive community. Python was my first 'real' programming language and I draw upon those first principles I learned everyday.
@@silience_ Actually I recommend something like java because it is challenging enough to determine if you even enjoy programming/developing in the first place. If you're someone completely new it'd still be good to try java first. I know because I speak from experience. My second language was python and believe me it was a piece of cake. All it takes is understanding how to utilize objects and methods. Data structures, data types available, syntax should all come naturally, the main thing is understanding concepts and what makes a language efficient in comparison to others before thinking you want to major/work in CS.
gg man. Next time please explain more. I feel like just coding. Great job!
Thanks, will do!
Good tutorial as you're straight to the point, but just as some of the comments suggested, there needs to be more explanation (brief) of some snippets of code being used. And would like some explanations of the concepts behind Swift as I'm coming from various other languages/frameworks. Thank you for this!
Good video, can I suggest to slow down a bit? Not everybody has these functions memorized and trying to keep up with 3 lines of code in 30 seconds can be challenging
Tutorial is short and to the point. However some more explanations along the way would be appreciated. What's an imageView? What's the difference between AspectFill and AspectFit? What does CGRect stand for? Etc..
Simple Google searches will answer those questions. The shortness is the point.
You should have the official swift documentation open at the same time to reference stuff like this
90% of coding is googling stuff
Hey! Thanks for the awesome tutorial. This was not my very first iOS App but it is the one that I've done with a clear understanding, thanks to your pure definitions and explanations. I will be digging the channel for other content to learn more about iOS development as a total beginner. Thanks!
Glad to hear it! Thanks for watching
I’m a software engineer 2 and this helped me get started creating iOS apps. Though the syntax is a bit confusing, I’m sure it will make sense in time. Thanks 🙏
Awesone! Congrats
I'm a software eng currently working with the javascript frameworks react , react native and node. Now I'm going to learn the ios development and after lot of searching I have decided to start with your channel to learn some basics. Hope it went well . Thanks a lot in advance.
Nice tutorial. Btw, I don't see your mouse/cursor moving on the screen. Are you using keyboard/shortcuts for everything? Perhaps for the purposes of the video tutorial you could make an exception and use a big fat mouse pointer so people can see which buttons, icons, etc you are clicking?
its his screenrecorder, hid his mouse
Thanks for keeping it short and sweet! Super helpful to quickly ramp up on something new :)
Glad it was helpful!
thanks for the video, it will start to follow you and watch your videos. we go for more
Youre welcome
I was able to follow along and create a working sample app. Thank you so much for doing this. It definitely builds some confidence when you code and see the results on your own screen.
Absolutely! Congrats!
Interesting Video on iOs app development using Swift technology. It's helpful for me and also those who need this like beginners. Keep sharing more videos regarding app development using Swift and any other technologies. Thank you!
Thank you. Fun to do for a total newbie and looking forward to trying more.
Have fun!
Thanks for helping me to create my first swift project Just started learning.
Your welcome
What’s the difference between Swift UI and Storyboard? And which interface is the best way to learn how to code for beginners? Thank you
Awesome Tutorial!! It was a little difficult to keep up at times, your talking was perfect but some of your keyboard movement in the program were a little quick so I messed up a few times on the code and would receive errors because I didn't do exactly what you did, so I just scrubbed a lot and paused for copying code as well as slowing the video down a few times just to catch what you were doing. Other than those minor things.. because I literally came into this with no prior knowledge and I'm literally looking at this app on my Mac. This is the best tutorial everrr!!!
Thank you very much this is supper cool my daughter is 10 years old and fallow your tutorial shes exited for her first app
little late to the party, but thanks for the video. Created the first app and it was easy and understandable :-) Now I am checking out the other videos and try to create my own app! (Idea is there, but have to learn how to swift code)
Good luck
It worked! My first iOS app. Thanks man!
Confrats
In October 2021 when building an app - what's the reason for there being no ViewController importing UIKit, but instead a ContentView importing SwiftUI? I can't seem to find an equivalent View. method. Any help is appreciated!
Very cool, this was the first app I built, the first of many, will be watching more of your videos tomorrow before I start building my real first app, thanks again!
Way to go! Congrats
Yeaa thanks
iOS Academy
I built My first IOS app here
Nice!!!
I work for Apple as iOS and macOS tech support. I love this and I am actually about to learn more as I signed up for Code Academy. I want to understand this stuff so bad. It’s going to be fun but definitely challenging.
Great to hear! You can do it!
@@iOSAcademy Thank you
Advice for applying and getting hired there?
Thanks for the help, but with all due respect it's misleading when you add "2023" into a Video you made in April 2022. To garner more views XCode has changed since.
Coming from a data science background who works with python daily, I feel like coding an iOS app is comparable to plotting a nice matplotlib plot with some added functions on top. Nice tutorial btw, makes me want to try it out myself.
ok this made me feel a lot better about swift! I have an option to learn in school for my degree so I was curious. Im a data analyst who loves python too
Great 👍
Thank you! Cheers!
Thanks
Youre welcome
man I was super confused on how to use it, Thanks Bro
Thank you!
Youre welcome
Awesome tutorial, I finally made my first IOS app !
Congrats!
Congrats!
Awesome Thanks
Welcome
감사합니다
Youre welcome
thank you so much!
Youre welcome
This is like teaching someone to fish with a lightsaber and then giving them a spear
Just stumbled across this. Excellent tutorial.
Glad it was helpful!
Thanks a lot for helping me to built my first iOS application.
Youre welcome!
Great tutorial!! 🙌🏼💪🏼👍🏼❤
Thanks!
very cool, thank you
Glad you liked it!
Nice!
Thanks
Hey you have an attractive voice. Well, I have a question. I want to build an app that will be having user profiles, calling features, geo-fencing, geo-tagging, voice & photo sharing(ephemeral) and a bit of social features. Could you tell me if I should hire a backend programmer as well? Because right now, I do have an app designer and an iOS developer who codes in Swift and deploy it in AWS Lambda. Is the Swift developer enough to create the app logic, business logic and the entire backend of the app? or should I hire a Golang-GRPC / Node.js-Appsync developer for all that? And keep the frontend (iOS) part to the Swift developer?
Please do answer.
Thanks.
Hello. Why do you use UIKit when SwiftUI Is already imported? What’s the difference and is it necessary to learn both modules?
Cool video man!
ty
Your welcome
As a beginner, should I code every element or use an object library?
GREAT COURSE!!!
Thank youu
@@iOSAcademy subscribed!
Crazy drinking game, take a shot every time he says ‘go ahead’.
Honestly great idea
Don't be lazy, either create a new tutorial for 2024 or leave this one in 2022.
What a great tutorial. :)
Thanks
Late to the party but do you recommend starting with the swift 5 for beginners (2022) playlist?
Yes!
Thank you for this great video
Youre welcome
Hey! Thanks for the awesome tutorial
Youre welcome
Can you make a camera app this way also? Can you show us how to do that? Is that possible?
This tutorial is amazing!
Glad you think so!
hello, thanks for your video! I liked the way you explain. and the only thing that "bad things happened" was that errors came out because I did not close the stimulator correctly. but I still found what hotkeys to do it and everything worked fine :)Ps/ command + Q. in case it helps someone like me
Thank you for the great video tutorial... The video quality could have been a little better tho at 1080p it is still blurry.
Thanks for the feedback
Hi, why doesn’t my Xcode show life cycle? And i cant see the .xxx after the file.
Watching the video at 8:20pm, what're the chances I watch at the same time as your system clock in the intro?? haha
Hah it means youll be a great ios dev
how do you center the title text?
small problem, i am running Xcode 2010 and… .system(color) doesn’t exist some how
Hello, How can we make a add a browser to the app anddisplay a page when it automatically opens the app?
Might need to update this video because now when I try to follow along I cannot render due to "cannot find ContentView in scope" error
This was awesome
Thanks!
can you explain bit more for .system view guard and all I mean what’s happening behind the scenes
love u
Love u too
Can you do this without a Mac?
Hey I really like your tutorials and I’ve been following them recently. I was wondering if you could make a tutorial on how to make a memory match game or a Simon says game. There’s tutorials on TH-cam but they r super outdated
sure thing
How can I have a link for a meme website instead this one?
What a nice video!
You are so kind
at the top left?? where is the top left? we can't see where you clicked to bring out the simulator!!
yeah i dont have the same simulator bar at the top like he does. were you able to find it?
HI I tried writing this code but on execution the random photos didnt stick with the defined 300*300 frame size, how to resolve this issue
Clip the imageview
Great video bro 👍
Now Subscriber.
Thanks!
Great video. I followed along and built the app. Do you have any video on xcoding a webpage to an iOS app?
Awesome! Search the channel for webviews
nice! bt it would be more helpful if u start with the file structure..
Good idea
i accidentally deleted my main.storyboard how do i restore it and point it to my project?
I made a random rat app. thank you!
Youre welcome
"Guard let data" sounds like Shakespeare designed the code language
Yep 😂😂😂
random photo url is dead
Is there a away I can turn a pre-coded file into swift and to give a profile to download on settings?
outerloop: for i in 1...3{
innerloop: for j in 1...3 {
if j == 3 {
break outerloop
}
print("i = \(i), j = \(j)")
}
}
Output
i = 1, j = 1
i = 1, j = 2
Can someone explain this break statement in this for loops? Why on the second iteration it still say "i = 1"? Shouldn't it say "i = 2"?
this has nothing to do with the video I guess and I hope for you 4 months were long enough to have the answer ... but here you go: if you break a loop, you break out of it, so no more loops happen. as you break out of the outer loop, the next line of your code get executed after the outer loop ... as you don't have any further commands, your app quits and you're left wondering about the output. if you want to let your code say i = 2, so you'd like to break out of the inner loop to execute the next outer loop, you'll have to break the inner loop.
No because the for loop for i terminates once j reaches 3, this doesn’t allow i to reach too. Bit weird, he could have set i=1
Two*
Can we make self sizing table view cell using frame layout approach for dynamic height ?
If yes please make video on that
I am unable to type in a title under the navigation bar properties. I see a lot more properties than are shown in your tutorial.
Hello there, I just am confused, and I didn't find a way to hot reload like you do without installing the injectIII, or at least I didn't see any sign of it in your video, could you please help me with that? (I just don't wanna install packages I don't know or someone I trust recommend it for me)
Ahh my bad, didn't notice, I was just all in, great video, but I came from js background so I used to have a hot reload (the lazy kind of people), do you have an idea how to implement that?
Thanks for taking your time on this tutorial. But I'm wondering if it does not work on 14.2.
It should
iPhone 10
So said on the top left click here but WHERE is HERE
Thanks for the feedback
I get error code: Cannot find type 'UIImageview' in scope on line 12 and also cannot infer contextual base in reference to number on line 21
can't get through those does anyone else get the same problem?
Thank you. Do you give private lessons? I want to learn bootcamp for building ios apps.
Yoire welcome. Not yet but planning to
Instead of making a didtap() function and putting getrandomphoto() inside, why cant the target of the button just be getrandomphoto()?
Why photo loading is delay for me?
Depends on internet speed
Plenamente teach for android in Java as well. Its not about the language but about the way tou teachh!!!!!
Hey! I’m currently learning Java. In the future I plan to learn Swift. Is it easier to learn swift when you know Java?
Yes
@@iOSAcademy thanks a lot!
Instead of using a website, could you just use your own photos and make them random?
Yep
Every time I write imageView the error: ‘Instance member ‘imageView’ cannot be used on type ‘ViewController’; did you mean to use a value of this type instead?’ Comes up.
Edit: Fixed it
How did you fix this?
@@kamkanikahilialoha It was just a typo. Just look at the code on your PC and compare it with the code in the video.
@@siderism1062 Ok. Ill check. Did you build your app in iOS 15 or 14?
@@kamkanikahilialoha IOS 15
Can you make tutorial how to make drawing app in xcode? Thanks your videos very halp me
Sure & thanks!
so imma go ahead
I think i said it once or twice :p
why is my runtime while pressing the button so long to load a new picture using m1 Mac