Category: iOS

  • Using Create ML to Build an Image Classification Model

    This chapter will demonstrate the use of Create ML to build an image classification model trained to classify images based on whether the image contains one of four specific items (an apple, banana, cat, or a mixture of fruits). The tutorial will include the training and testing of an image recognition machine learning model using…

  • Preparing an iOS 17 App to use iCloud Storage

    From the perspective of the average iPhone or iPad owner, iCloud represents a vast, remote storage service onto which device-based data may be backed up and music stored for subsequent streaming to multiple iCloud-supported platforms and devices. From the iOS app developer’s perspective, iCloud represents a set of programming interfaces and SDK classes that facilitate…

  • An Introduction to Machine Learning on iOS

    Machine learning is one of the key components of artificial intelligence. It involves using data analysis to teach software to perform tasks without specifically being programmed. Machine learning is used in many fields and industries to perform tasks such as identifying spam emails, detecting people and objects in images, fraud detection, and financial trading systems,…

  • iOS 17 Directory Handling and File I/O in Swift – A Worked Example

    In the Working with Directories in Swift on iOS 17 and Working with Files in Swift on iOS 17 chapters of this book, we discussed in detail the steps involved in working with the iOS file system in terms of both file and directory handling from within iOS apps. The goal of this chapter is…

  • An Example iOS 17 SiriKit Messaging Extension

    The previous chapter covered much of the theory of integrating Siri into an iOS app. This chapter will review the example Siri messaging extension created by Xcode when a new Intents Extension is added to a project. This project will show a practical implementation of the topics covered in the previous chapter and provide more…

  • Working with Files in Swift on iOS 17

    In the chapter entitled Working with Directories in Swift on iOS 17, we looked at the FileManager, FileHandle, and Data Foundation Framework classes. We discussed how the FileManager class enables us to work with directories when developing iOS-based apps. We also spent some time covering the file system structure used by iOS. In particular, we…

  • An Introduction to SiriKit

    Although Siri has been part of iOS for several years, it was not until the introduction of iOS 10 that some of the power of Siri was made available to app developers through SiriKit. Initially limited to particular app categories, SiriKit has been extended in iOS 17 to allow Siri functionality to be built into…

  • Working with Directories in Swift on iOS 17

    It is sometimes easy to forget that iOS is an operating system much like that running on many other computers today. Given this fact, it should come as no surprise that iOS has a file system much like any other operating system allowing apps to store persistent data on behalf of the user. Again, much…

  • An iOS 17 Interactive Message App Tutorial

    The previous chapter introduced message app extensions and described how the Messages framework allows custom, interactive messages to be sent and received from within the standard iOS Messages app. In this chapter, many of the concepts described in the previous chapter will be put to practical use while working through the creation of an example…

  • An Overview of Swift Structured Concurrency in iOS 17

    Concurrency can be defined as the ability of software to perform multiple tasks in parallel. Many app development projects will need to use concurrent processing at some point, and concurrency is essential for providing a good user experience. Concurrency, for example, allows an app’s user interface to remain responsive while performing background tasks such as…