Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • iOS 15 Programming for Beginners
  • Toc
  • feedback
iOS 15 Programming for Beginners

iOS 15 Programming for Beginners

By : Ahmad Sahar, Craig Clayton
4.7 (10)
close
iOS 15 Programming for Beginners

iOS 15 Programming for Beginners

4.7 (10)
By: Ahmad Sahar, Craig Clayton

Overview of this book

With almost 2 million apps on the App Store, iOS mobile apps continue to be incredibly popular. Anyone can reach millions of customers around the world by publishing their apps on the App Store. iOS 15 Programming for Beginners is a comprehensive introduction for those who are new to iOS. It covers the entire process of learning the Swift language, writing your own app, and publishing it on the App Store. Complete with hands-on tutorials, projects, and self-assessment questions, this easy-to-follow guide will help you get well-versed with the Swift language to build your apps and introduce exciting new technologies that you can incorporate into your apps. You'll learn how to publish iOS apps and work with Mac Catalyst, SharePlay, SwiftUI, Swift concurrency, and much more. By the end of this iOS development book, you'll have the knowledge and skills to write and publish interesting apps, and more importantly, to use the online resources available to enhance your app development journey.
Table of Contents (32 chapters)
close
1
Part 1: Swift
10
Part 2: Design
15
Part 3: Code
25
Part 4: Features

Downloading and installing Xcode from the App Store

Before you begin writing iOS apps, you need to download and install Xcode from the App Store. To do this, follow these steps:

  1. Choose App Store from the Apple menu.
  2. In the search field in the top-right corner, type Xcode and press the Return key.
  3. You should see Xcode in the search results. Click Get and click Install.
  4. If you have an Apple ID, type it in the Apple ID text box. If you don't have one, click the Create Apple ID button and follow the step-by-step instructions to create one:
Figure 1.1: Apple ID creation dialog box

Figure 1.1: Apple ID creation dialog box

Important Information

You can see more information on how to create an Apple ID using this link: https://support.apple.com/en-us/HT204316#appstore.

  1. Once Xcode has been installed, launch it. You should see the following Welcome to Xcode screen. Click Create a new Xcode project in the left-hand pane:
Figure 1.2: Welcome to Xcode screen

Figure 1.2: Welcome to Xcode screen

  1. You will see the new project screen as follows. In the Choose a template for your new project: section, select iOS. Then choose App and click Next:
Figure 1.3: Choose a template for your new project screen

Figure 1.3: Choose a template for your new project screen

  1. You will see the Choose options for your new project: screen:
Figure 1.4: Choose options for your new project screen

Figure 1.4: Choose options for your new project screen

Configure this options screen as follows:

  • Product Name: The name of your app. Enter ExploringXcode in the text field.
  • Organization Identifier: Used to create a unique identifier for your app on the App Store. Enter com.yourname for now. This is known as reverse domain name notation format, and is normally used here.
  • Interface: The method used to create the user interface for your app. Set this to Storyboard.
  • Language: The programming language to be used. Set this to Swift.

Leave the other settings as their default values and make sure all the checkboxes are unticked. Click Next when done.

  1. You'll see a Save dialog box. Choose a location to save your project, such as the Desktop or Documents folder, and click Create:
Figure 1.5: Save dialog box

Figure 1.5: Save dialog box

  1. If you see a dialog box saying No author information was supplied by the version control system, click Fix.

    Important Information

    The reason why you see this dialog box is because the Source Control checkbox is ticked. Apple recommends that Source Control be turned on. Source Control is outside the scope of this book but if you wish to learn more about version control and Git, see this link: https://git-scm.com/video/what-is-version-control.

  2. You will see the Source Control preference screen as follows:
Figure 1.6: Source Control preference screen

Figure 1.6: Source Control preference screen

Enter the following information:

  • Author Name: – Your own name
  • Author Email: – Your email address

Close the Source Control preference screen by clicking the red Close button in the top-left corner when done. The Xcode main window will appear.

Fantastic! You have now successfully downloaded and installed Xcode and created your first project. In the next section, you will learn about the Xcode user interface.

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete