How to Display a Bottom Sheet Using SwiftUI
In iOS 15, Apple unveiled the UISheetPresentationController class for displaying an expandable bottom sheet in iOS apps. At the time, it’s only available in the UIKit framework. For SwiftUI, you either have to build your...
What’s New in SwiftUI 4 for iOS 16
Earlier this week, Apple kicked off WWDC 22. The SwiftUI framework continues to be one of the main focuses of the conference. As expected, Apple announced a new version of SwiftUI that comes along with iOS 16 and Xcode 14. This...
Language Detection and Text to Speech in SwiftUI Apps
With the advent of machine learning and artificial intelligence, the iOS SDK already comes with a number of frameworks for developers to develop apps with machine learning-related features. In this tutorial, let’s explore...
How to Create Confetti Animations in SwiftUI
From time to time, we received questions about how to create confetti animations. Undoubtedly, you can build the animation from the ground up using SwiftUI or UIKit. Recently I came across an open source library called...
Using Lottie and SwiftUI to Create Awesome Animations
A few years ago, I wrote a tutorial about the Lottie library. A reader asked if he could use the library in SwiftUI projects. So, in this tutorial, let’s revisit this amazing library and see how we can use it in SwiftUI...
Using Markdown in SwiftUI
Other than all the big features such as AsyncImage and searchable, the iOS 15 SDK also introduced some minor improvements to streamline the development of iOS apps. In this tutorial, we will show you how to use Markdown in...
Intermediate iOS Programming with Swift is Now Updated for iOS 15 and Xcode 13
This intermediate book (over 950 pages) uses a problem-solution approach to teach you Swift programming and covers some of the common APIs provided by the iOS SDK including Core ML and ARKit. The book and the source code bundled...
Swift Playgrounds 4: Building a Text to Speech App Entirely on iPad
In WWDC 21, one of the announcements that caught my attention was the massive changes of Swift Playgrounds. Not only can you learn Swift using Playgrounds, the new update allows developers to create apps entirely on iPad and...
Mastering SwiftUI is now updated for iOS 15 and Xcode 13
We’ve just released an update for our SwiftUI book – Mastering SwiftUI. All the content including screenshots and source code are updated for Xcode 13 and iOS 15. On top of that, we added new chapters to cover...
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...