Starting point in the Xcode Editor

Pardon my ignorance but it's been about 13 years since I have last used the Xcode Editor and I don't know where to start entering code. Could someone take pity on me and inform me where? Thanks!

Answered by darkpaw in 821954022

Start a new project - iOS App - give it a name, choose SwiftUI as the interface, and Swift as the language, and tell it where to save it. If you choose a storage option other than None you'll have a working app with a backend data store.

App.swift file is the main entry point to the app you're building, and ContentView.swift is called by App. ContentView() is your SwiftUI view where you can start to build your interface.

You don't need to use storyboards anymore (thankfully). SwiftUI is declarative, and is very easy to pick up. Make use of the Preview canvas so you can see changes you make without having to build and run your code.

Happy coding!

Start a new project - iOS App - give it a name, choose SwiftUI as the interface, and Swift as the language, and tell it where to save it. If you choose a storage option other than None you'll have a working app with a backend data store.

App.swift file is the main entry point to the app you're building, and ContentView.swift is called by App. ContentView() is your SwiftUI view where you can start to build your interface.

You don't need to use storyboards anymore (thankfully). SwiftUI is declarative, and is very easy to pick up. Make use of the Preview canvas so you can see changes you make without having to build and run your code.

Happy coding!

Different people learn in different ways but…

Various beginners have told me that they found the resources at Developer > Tutorials to be super helpful.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Starting point in the Xcode Editor
 
 
Q