Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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 15 Programming for Beginners

You're reading from   iOS 15 Programming for Beginners Kickstart your mobile app development journey by building iOS apps with Swift 5.5 and Xcode 13

Arrow left icon
Product type Paperback
Published in Dec 2021
Publisher Packt
ISBN-13 9781801811248
Length 784 pages
Edition 6th Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Ahmad Sahar Ahmad Sahar
Author Profile Icon Ahmad Sahar
Ahmad Sahar
Craig Clayton Craig Clayton
Author Profile Icon Craig Clayton
Craig Clayton
Arrow right icon
View More author details
Toc

Table of Contents (32) Chapters Close

Preface 1. Part 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. Part 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. Part 3: Code
16. Chapter 13: Getting Started with MVC and Collection Views 17. Chapter 14: Getting Data into Collection Views 18. Chapter 15: Getting Started with Table Views 19. Chapter 16: Getting Started with MapKit 20. Chapter 17: Getting Started with JSON Files 21. Chapter 18: Displaying Data in a Static Table View 22. Chapter 19: Getting Started with Custom UIControls 23. Chapter 20: Getting Started with Cameras and Photo Libraries 24. Chapter 21: Understanding Core Data 25. Part 4: Features
26. Chapter 22: Getting Started with Mac Catalyst 27. Chapter 23: Getting Started with SwiftUI 28. Chapter 24: Getting Started with Swift Concurrency 29. Chapter 25: Getting Started with SharePlay 30. Chapter 26: Testing and Submitting Your App to the App Store 31. Other Books You May Enjoy

Understanding the Xcode user interface

You've just created your first Xcode project! As you can see, the Xcode user interface is divided into several distinct parts, as shown here:

Figure 1.7: Xcode user interface

Figure 1.7: Xcode user interface

Let's look at each part in more detail. The following descriptions correspond to the numbers shown in the preceding screenshot:

  • Toolbar (1) – Used to build and run your apps, and view the progress of running tasks.
  • Navigator area (2) – Provides quick access to the various parts of your project. The Project navigator is displayed by default.
  • Editor area (3) – Allows you to edit source code, user interfaces, and other resources.
  • Inspector area (4) – Allows you to view and edit information about items selected in the Navigator area or Editor area.
  • Debug area (5) – Contains the debug bar, the variables view, and the Console. The Debug area is toggled by typing Shift + Command + Y.

Next, let's examine the toolbar more closely. The left side of the toolbar is shown here:

Figure 1.8: Xcode toolbar (left side)

Figure 1.8: Xcode toolbar (left side)

Let's look at each part in more detail. The following description corresponds to the numbers shown in the preceding screenshot:

  • Navigator button (1) – Toggles the Navigator area on and off.
  • Stop button (2) – Only appears next to the Play button when the app is running. Stops the currently running app.
  • Play button (3) – Used to build and run your app.
  • Scheme menu (4) – Shows the specific scheme to build your project (Exploring Xcode) and the destination to run your app on (iPhone SE (2nd generation).

Schemes and destinations are distinct. Schemes specify the settings for building and running your project. Destinations specify installation locations for your app, and exist for physical devices and simulators.

  • Activity View (5) - Displays the progress of running tasks.

The right side of the toolbar is shown here:

Figure 1.9: Xcode toolbar (right side)

Figure 1.9: Xcode toolbar (right side)

Let's look at each part in more detail. The following description corresponds to the numbers shown in the preceding screenshot:

  • Library button (1) – Displays user interface elements, code snippets, and other resources.
  • Inspector button (2) – Toggles the Inspector area on and off.

Don't be overwhelmed by all the different parts, as you'll learn about them in more detail in later chapters. Now that you are familiar with the Xcode interface, you will run the app you just created in the iOS simulator, which displays a representation of your iOS device.

You have been reading a chapter from
iOS 15 Programming for Beginners - Sixth Edition
Published in: Dec 2021
Publisher: Packt
ISBN-13: 9781801811248
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 $19.99/month. Cancel anytime
Banner background image