Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
iOS 14 Programming for Beginners

You're reading from   iOS 14 Programming for Beginners Get started with building iOS apps with Swift 5.3 and Xcode 12

Arrow left icon
Product type Paperback
Published in Nov 2020
Publisher Packt
ISBN-13 9781800209749
Length 766 pages
Edition 5th Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ahmad Sahar Ahmad Sahar
Author Profile Icon Ahmad Sahar
Ahmad Sahar
Arrow right icon
View More author details
Toc

Table of Contents (31) Chapters Close

Preface 1. Section 1: Swift
2. Chapter 1: Getting Familiar with Xcode FREE CHAPTER 3. Chapter 2: Simple Values and Types 4. Chapter 3: Conditionals and Optionals 5. Chapter 4: Range Operators and Loops 6. Chapter 5: Collection Types 7. Chapter 6: Functions and Closures 8. Chapter 7: Classes, Structures, and Enumerations 9. Chapter 8: Protocols, Extensions, and Error Handling 10. Section 2:Design
11. Chapter 9: Setting Up the User Interface 12. Chapter 10: Building Your User Interface 13. Chapter 11: Finishing Up Your User Interface 14. Chapter 12: Modifying and Configuring Cells 15. Section 3:Code
16. Chapter 13: Getting Started with MVC and Collection Views 17. Chapter 14: Getting Data into Collection Views 18. Chapter 16: Getting Started with MapKit 19. Chapter 17: Getting Started with JSON Files 20. Chapter 18: Displaying Data in a Static Table View 21. Chapter 19: Getting Started with Custom UIControls 22. Chapter 20: Getting Started with Cameras and Photo Libraries 23. Chapter 21: Understanding Core Data 24. Section 4:Features
25. Chapter 22: Getting Started with Apple Silicon Macs 26. Chapter 23: Getting Started with SwiftUI 27. Chapter 24: Getting Started with Widgets 28. Chapter 25: Getting Started with App Clips 29. Chapter 26: Testing and Submitting Your App to the App Store 30. Other Books You May Enjoy

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. 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 textbox. If you don't have an Apple ID, 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 at this link: https://support.apple.com/en-us/HT204316#appstore

  5. 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

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

    Figure 1.3 – Choose a template for your new project screen

  7. You will now 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. Normally, reverse DNS notation is used. Enter com.yourname for now.
    • 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 at their default values. Make sure all the checkboxes are unticked. Click Next when done.

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

    Figure 1.5 – Save dialog box

  9. 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. To learn more about version control and Git, refer to the following link: https://git-scm.com/video/what-is-version-control

  10. 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 button in the top-left corner when done.

  11. 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.

You have been reading a chapter from
iOS 14 Programming for Beginners - Fifth Edition
Published in: Nov 2020
Publisher: Packt
ISBN-13: 9781800209749
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime