‫-: Hi. Within this lecture we are going to
‫create our first Xcode project
‫and we're going to start building our first iOS app.
‫So if you have closed Xcode for some reason,
‫you can come over here to Launchpad and click
‫on the Xcode icon,
‫or you can hit comment and space in your keyboard and search
‫for Xcode and find it and click on it to open the Xcode.
‫Okay, so if you have not closed the Xcode yet,
‫so it's better and you are seeing a screen like this.
‫So you have three options over here.
‫Okay? So first you can start with a playground.
‫So playground is actually a playground
‫in which we can play with the SWIFT code
‫in which we can learn the basics of the Swift.
‫And the third one is to clone an existing project.
‫So this is basically copying an existing Xcode project
‫but we want this one.
‫Okay, we want in the middle.
‫So create a new Xcode project.
‫If you click on that, you will see a screen like this
‫in which you will choose a template for your Xcode project.
‫So as you can see, we have a lot
‫of templates and during the course we will work some
‫of these templates and we will see these tabs as well.
‫So this is for TV os and this is for Mac os.
‫If you know Swift,
‫you can just create apps for TV, os, Mac OS, or iOS.
‫But we are going to focus mainly
‫on iOS and we mainly going to choose the single view app.
‫This is the most basic empty template because we
‫are going to learn how to create things from scratch, okay?
‫We are not going to need any templates for us
‫at least at this moment.
‫In the future, in the following sections
‫we are going to see some other ready templates for us.
‫But for the time being, I'm going to go for Single View app.
‫And also keep in mind that if you choose Single View app
‫you can later on add some more features on it as well.
‫So here you see a game.
‫So this basically lets you create a game
‫with a physical word
‫and we are going to see what it is later on.
‫So this is for example, an augmented reality app
‫and we are going to work with that one as well.
‫And we are going to see the other templates.
‫But right now the most basic thing to do is just
‫to create a single view app and add everything
‫in here manually and not worry about all these other
‫templates at this moment.
‫So choose this and come here and click next.
‫So once you click next, you will either present
‫at this page or a very similar version.
‫So it has a slight difference in some versions
‫and I'm going to show you what it is, don't worry.
‫So here we see the general settings of our project
‫like a product name, okay?
‫For example for our product name,
‫I'm gonna go for My first app
‫and of course later on we are going to see how
‫we can change this name from our Xcode project as well.
‫And in fact, we can change every setting that we
‫are making here later on, but we need to make sure
‫that we are just doing the right thing from scratch.
‫So I'm going to show you how to work with this.
‫So in the team, you're most probably seeing this none.
‫And in my case, I am seeing my name
‫which is not important at this point.
‫So if you're seeing none
‫then it's okay to proceed with none.
‫Once we go into the Xcode
‫I'm going to show you how you can add your Apple ID
‫to your Xcode so that they will be connected.
‫In my case, now I see my name, I'm just going to go
‫with those, but again, it's not important right now.
‫Over here we have an organization name.
‫So either you write your company's name
‫or you can write your own name
‫if you're working for yourself.
‫So once you write your organization name
‫it creates an organization identifier for you.
‫As you can see, this is a reverse domain
‫so it's com.atilsam rather than atilsam.com
‫So this can be changed of course,
‫but using this organization name
‫and using these organization identifier
‫actually Xcode creates a bundle identifier for us.
‫So this is important
‫because this is the unique ID of our app.
‫So as you can see, it takes the product name
‫and it takes the organization identifier
‫and it creates a bundle identifier for our app.
‫So this is a differentiating ID for our app so that
‫when we upload this to the app store,
‫they can understand which app is which app
‫by actually looking at their bundle identifiers.
‫So we can change this later on as well when
‫we open the Xcode.
‫But this is somewhat important so if you're building
‫a real app just try to come up with a good product name
‫and write your own organization name like your name.
‫And over here we have the language section as well.
‫And as you can see, we have two options
‫either Swift or Objective-C.
‫We are focusing on Swift in this course
‫because Swift has been released by Apple five years ago
‫and now it's actually very popular programming language
‫and it's one of the best ones in the world.
‫So it's very easy to understand
‫very easy to use, and it's, I believe in my opinion,
‫it's much more better when we compare it to Objective-C.
‫So we are gonna go for Swift.
‫So after Swift has been released,
‫most of the projects has been shifted to Swift anyway
‫so that's what we are going to learn in this course.
‫And here we have this user interface tab.
‫Okay? So we are going to choose storyboard
‫from this tab rather than SwiftUI.
‫So SwiftUI is actually a new concept introduced
‫by Apple into our worlds, and it actually
‫lets us create stunning user interfaces.
‫Later on in the course we are going to have
‫a SwiftUI section as well, but right now we're gonna focus
‫on storyboards because this SwiftUI is kind of new
‫and it will be effective as of iOS 13
‫so that people would have to install iOS 13
‫or above into their phones in order to make this work.
‫So we are going to have to wait a little bit
‫more to shift every project to SwiftUI.
‫And we are going to use storyboards most
‫of the time in this course for that perspective.
‫And don't worry, the codes are the same.
‫Actually we use Swift in storyboard, user interface
‫and we use Swift in SwiftUI as well.
‫And this is only related to the user interface
‫the design of the app, if you may say, okay?
‫And over here you will see some check boxes
‫like use core data.
‫So this will let us create a local database
‫to use in our apps.
‫Right now we don't need those, right now
‫we don't need any tests as well.
‫Later on we are gonna see what we can make with core data.
‫And the other screen that you can see when
‫you open your first project is this.
‫So again, here everything seems to be the same
‫like this language tab over here, you can choose Swift
‫or Objective-C.
‫From here you can write your product name
‫and everything, but as you can see, Swift UI is
‫in the checkbox list as well.
‫So rather than choosing Storyboard, you can just
‫ignore Swift UI over here, just uncheck it.
‫If it's checked, then it'll create a project
‫for you using storyboards.
‫So this is the only difference that you can get
‫with regarding to different Xcode versions.
‫So Apple hasn't decided which version to go with yet.
‫So you can either see this or the previous screen
‫that I have shown you, and it doesn't matter,
‫just uncheck the Swift UI or just choose this storyboard
‫from the dropdown menu.
‫And after you do all of these things,
‫now you're ready to create your first project.
‫So don't forget to fill this information up
‫and don't forget to click next here because we
‫are going to choose where to save our project next.
‫So, I have created a folder in my desktop named iOS Complete
‫because I'm going to save all of the projects in here.
‫You can just choose wherever you want.
‫You can save your projects wherever you want
‫on your computer.
‫And after you choose your folder
‫you can just click create here.
‫And in this source control pane
‫you will see some option to create get GitHub repositories.
‫We're going to see what a Git is, later on in the course.
‫This is basically a say point checkpoint for your apps.
‫Okay? So you can go back in time
‫if you mess up with something in your code.
‫And I'm going to go for that
‫and I will say create a Git repository on my Mac.
‫We're going to see what a GitHub
‫and what a Git is later on, as I said.
‫So let's create our project, and once you do that
‫it will actually create some files and folders.
‫And this will be the project pane that we are working
‫that we will be working on those files and folders.
‫If you open your folder over here, you will see some apps,
‫you will see some project files,
‫project folders in your project folder.
‫Okay? And in fact, if I close this
‫down and if I close my Xcode project down
‫I can go back to my folder and I can find my project file.
‫And if I double click on this, it will pop open again
‫so I can start working on my project.
‫If you how come this far, we can stop here.
‫And we are going to continue building our app
‫on the next lecture.