Getting Started with iOS and SwiftUI

By: Luis A. Sierra

Creating the Hello World iOS App Project

Hello, World! It is the first basic program in any programming language. Let's write the first program in the iOS with Swift programming language.

To create and run a hello world program follow the following steps:

Step 1: Open XCode in your system and Create a new XCode project.
Step 2: Select the App and then click on the Next button.


Step 3: Give a name to your project like here we give "helloworld" and then click on next button.


Step 4: Select the project location and then click on the create button. Now the project is created.


Step 5: Now open ContentView.swift file in the project navigator.

So, your structure should be this: ðŸ‘‡ðŸ‘‡ðŸ‘‡












Step 6: Now go to  View -> Show Library in the xcode menu.


Step 7: Now Add Text to the View.


Step 7: Now add the code below and setfont-size and Choose a color.


Step 8: Now let run our app iOS with Swift:


Step 9: Now wait to the simulator started 



Post a Comment

Previous Post Next Post