How to Share SwiftUI views Using Swift Packages
In the earlier tutorial, we created an animated menu bar in SwiftUI. What if you want to reuse the code in other projects? Of course, you can copy & paste the code from one project to another but there is a better way to...
How to Create an Animated Navigation Menu in SwiftUI Using matchedGeometryEffect
One reason why I really enjoy programming using the SwiftUI framework is that it makes so easy to animate view changes. In particular, the introduction of the matchedGeometryEffect modifier, introduced in iOS 14, further...
Deep Dive into Swift 5.5’s Async/await Concurrency Model
In designing the async/await construct, Apple is hoping to increase the readability, and thus maintainability, of implementing concurrency/parallelism in Swift. What I see in it are attempts: to make asynchronous/parallel code...
Displaying a Bottom Sheet in iOS 15 Using UISheetPresentationController
With the release of SwiftUI, some people have asked if UIKit is going to be dead. It’s far from dead. In iOS 15, Apple’s engineers continues to pour new features into UIKit. One of the highlights is...
How to Implement Search for SwiftUI List Using Searchable
Prior to iOS 15, SwiftUI didn’t come with a built-in modifier for handling search in List views. Developers have to create your own solution. We have written a tutorial showing you how to implement a search bar in SwiftUI...
Using AsyncImage in SwiftUI for Loading Images Asynchronously
In WWDC 2021, Apple announced tons of new features for the SwiftUI framework to make developers’ life easier. AsyncImage is definitely one of the new views, introduced in iOS 15, that is worth a mention. If your app needs...
SwiftUI for iOS 15: How to Add Swipe Actions and Hide Line Separators in List View
In WWDC 21, Apple introduced some of the most anticipated enhancements for List view in the SwiftUI framework. Prior to iOS 15, it is not very straightforward to hide line separators in a List view. We’ve shown you a...
Introduction to UI Testing in SwiftUI Using XCTest Framework
The process of making an app includes various parts, with the code implementation being the most important one. However, programming is not just about writing code; it’s also about testing using the available tools each...
Adding a Launch Screen in Swift Projects
A launch screen is the very first screen presented to users when your app starts up. When you create a new project with UIKit, Xcode automatically generates a storyboard file named LaunchScreen.storyboard for developers to design...
How to Record Videos and Animated Gifs in Xcode 12.5
With the release of Xcode 12.5, Apple finally lets developers record videos and animated GIF right from simulators. In this tutorial, I will walk you through this new feature. Please note that the latest version of Xcode requires...