Using Xcode Previews in UIKit Development
When SwiftUI was first released, one of the great features that piqued my interest was the instant preview function. This feature empowers developers to preview the user interface of any view within Xcode, entirely bypassing the...
Understanding @FocusState, @FocusedValue and @FocusedObject
In any user interface, focus plays a crucial role in determining which element receives the next input. SwiftUI provides a powerful set of tools and view modifiers that allow you to control and manage focus in your apps. By using...
How to Build a Barcode Generator Using SwiftUI
I recently received a question from a friend regarding barcode generation using Swift. The CoreImage framework provides convenient built-in APIs for creating various types of barcodes, including QR codes. In this tutorial,...
How to Use SwiftData in UIKit Apps
In iOS 17, Apple introduced a new framework called SwiftData to replace the Core Data framework. Earlier, we have written an introductory tutorial about SwiftData and showed you how to pair SwiftData with SwiftUI. While there are...
Working with String Catalogs for App Localization in iOS 17
With the release of Xcode 15, Apple introduced an exciting feature called String Catalogs. This feature aims to streamline the localization process for your app, making it easier to manage all your strings in one central...
Using SwiftData with Preview in SwiftUI
In the earlier tutorial, I have walked you through the basics of SwiftData, a new framework introduced in iOS 17 as a replacement for Core Data. If you have followed that tutorial, you should now be familiar with using SwiftData...
Customizing Toolbar and Navigation Bar in SwiftUI
The Toolbar API has been available for a considerable period, having been introduced with the release of iOS 14. It was a valuable addition to the SwiftUI framework, enabling developers to incorporate menu items in the navigation...
Using SymbolEffect to Animate SF Symbols in iOS 17
When it comes to designing visually appealing and intuitive user interfaces in iOS development, SF Symbols are an invaluable asset. It offers a comprehensive library of over 5,000 customizable icons, designed specifically for iOS...
Mastering SwiftUI for iOS 17 and Xcode 15 is now Released
As you know, Apple is set to release the official version of iOS 17 and Xcode 15 later this month. To ensure you stay up-to-date with these new releases, we have made significant updates to our Mastering SwiftUI book and its...
Creating Tooltips with the new TipKit Framework
It’s always important to make your app as intuitive as possible. However, for some features, it may be helpful to provide extra information to teach users how to use them effectively. That’s where TipKit comes in....