Using SwiftUI and WidgetKit to Make Your App Content Indispensable
By using a combination of SwiftUI and WidgetKit, you can increase the visibility of your app’s content and enhance the user experience by placing one or more “widgets” on the user’s iOS Home screen, macOS...
SwiftUI: How to Display Web Page Using WKWebView
It is very common that you need to display web content in your apps. The iOS SDK provides three options for developers to show web content: Mobile Safari, WKWebView, and SFSafariViewController. In iOS 14 (or later), the SwiftUI...
Announcing Beginning iOS Programming with Swift for iOS 15 and Xcode 13
After months of hard work, the new edition of our Beginning iOS Programming with Swift course for iOS 15 and Xcode 13 is now officially launched. In addition to updating our course for iOS 15 and Xcode 13, this new update comes...
How to Create Animated Gradients in SwiftUI
I recently got a question from a reader about how to animate gradient or create an animated gradient background using SwiftUI. The SwiftUI framework provides a number of built-in components such as LinearGradient and...
How To Style SwiftUI Buttons in iOS 15
In iOS 15, Apple introduced a new way to customize buttons in iOS apps for both SwiftUI and UIKit frameworks. While this tutorial focuses on the new features of SwiftUI, you can refer to this fantastic article, written by Sarun,...
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...
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...