Book Image

iOS 16 Programming for Beginners - Seventh Edition

By : Ahmad Sahar, Craig Clayton
Book Image

iOS 16 Programming for Beginners - Seventh Edition

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, which means that competent iOS developers are in high demand. iOS 16 Programming for Beginners, Seventh Edition, is a comprehensive introduction for those who are new to iOS, covering the entire process of learning the Swift language, writing your own app, and publishing it on the App Store. This book follows a hands-on approach. With step-by-step tutorials to real-life examples and easy-to-understand explanations of complicated topics, each chapter will help you learn and practice the Swift language to build your apps and introduce exciting new technologies to incorporate into your apps. You'll learn how to publish iOS apps and work with new iOS 16 features such as Mac Catalyst, SwiftUI, Lock Screen widgets, WeatherKit, 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 (34 chapters)
1
Part I: Swift
11
Part II: Design
16
Part III: Code
26
Part IV: Features
32
Other Books You May Enjoy
33
Index

Fixing user interface issues

One of the things that you will find is that an iOS app is never really finished. You’ll always find ways to improve and refine your app. Build and run your app, and compare it with the design shown in the app tour. You will notice upon close inspection that your app’s screens have minor differences when compared to the screens shown in the app tour (in Chapter 10, Setting Up the User Interface) and require changes. Let’s start with the Explore screen for your app:

Figure 23.1: iOS simulator showing Explore screen

The changes required for the Explore screen are as follows. Refer to the numbers to see the part that needs to be changed:

  • The navigation bar (1) is not present on the app tour and will have to be removed.
  • The collection view cells (2) have sharp corners. You’ll implement rounded corners for the cells to match the cells shown in the app tour.
  • The tab bar buttons are blue (3). You...