Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying iOS 18 Programming for Beginners
  • Table Of Contents Toc
iOS 18 Programming for Beginners

iOS 18 Programming for Beginners - Ninth Edition

By : Ahmad Sahar
4.4 (7)
close
close
iOS 18 Programming for Beginners

iOS 18 Programming for Beginners

4.4 (7)
By: Ahmad Sahar

Overview of this book

Want to turn your app idea into reality? iOS 18 Programming for Beginners is a guide that revolves around building a journal app, designed to teach you practical iOS development skills from the ground up. Through this approach, you'll gain hands-on experience with Xcode programming and progress through building a UI and filling it with functionality. Starting with the fundamentals of Swift 6, you'll learn how to construct user interfaces using storyboards and segues before diving into essential iOS concepts like table views, data handling, and map integration. The step-by-step tutorials guide you through key tasks such as persisting data with JSON, creating custom views, and integrating media into your apps. You’ll also discover how to enhance your apps using Apple Intelligence, incorporating machine learning and smart features to create cutting-edge iOS applications. The final chapters focus on crucial aspects of app development, including Swift Testing to ensure your app is robust, and submitting your app to the App Store—demystifying the journey from development to deployment. Whether you're a beginner or transitioning to iOS development, this guide will equip you with the skills needed to create and publish your own apps.
Table of Contents (34 chapters)
close
close
Lock Free Chapter
1
Part 1: Swift
11
Part 2: Design
16
Part 3: Code
26
Part 4: Features
32
Other Books You May Enjoy
33
Index

Using predictive code completion in Xcode

As you know, when you type code, Xcode will try to help you by displaying suggestions in a pop-up menu. Code completion takes this to another level, providing more thorough code suggestions via an on-device AI coding model. This model is specifically trained on Swift and Apple SDKs and will be able to infer what you are trying to do based on the surrounding code context, like function names and comments.

To see this in action, you’ll add a new file to your project and create some example structures and functions. Follow these steps:

  1. Open the completed Xcode project in the Chapter22 folder of the code bundle for this book, which can be downloaded from https://github.com/PacktPublishing/iOS-18-Programming-for-Beginners-Ninth-Edition.
  2. Click Settings in the Xcode menu and click the Text Editing tab. Click the Editing tab and tick the Predictive code completion check box:

Figure 26.1: Settings window showing...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
iOS 18 Programming for Beginners
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon