How to Use the New SwiftUI Preview Macro
The Preview feature in SwiftUI allows developers to see what their app will look like in real-time, without having to run the app on a device or simulator. This feature is incredibly useful for developers who want to quickly...
Animating Scroll View with SwiftUI
In the earlier tutorial, we introduced a new feature of ScrollView in iOS 17, which enables developers to easily detect the scroll position and implement the scroll-up (or scroll-down) feature. In addition to this functionality,...
Detecting Scroll Positions in ScrollView with SwiftUI
One common question that arises when using scroll views in SwiftUI is how to detect the scroll position. Prior to the release of iOS 17, developers had to come up with their own solutions to capture the scroll positions. However,...
Building Pie Charts and Donut Charts with SwiftUI in iOS 17
Pie charts and donut charts are two popular chart types used in data visualization. Prior to iOS 17, if you want to create these types of charts using SwiftUI, you’ll have to build the charts on your own using components like...
Working with ProgressView and ProgressViewStyle in SwiftUI
Progress bars or other kinds of indicators play a vital role in apps that execute time-consuming tasks or operations. It enriches the user experience by displaying a progress indicator, which enables the user to track the...
How to Use Stable Diffusion to Generate Images with Swift CLI
Developed by Stability AI in collaboration with academic researchers and non-profit organizations, Stable Diffusion is a deep learning model that generates detailed images based on text descriptions or what so called text...
Swift DocC: How to Host Document Archive on Web Server and GitHub Pages
Swift DocC is a documentation compiler introduced by Apple in Xcode 13, designed to help developers create elegant and interactive documentation for their iOS and macOS projects. The compiler converts your Markdown-based comment...
Introducing MotionBar – the Animated Tab Bar Library
In an earlier tutorial, we shared how to create a custom tab bar view using SwiftUI to replace the standard tab bar. If you’ve already read that tutorial, you know that building your own tab bar is not a difficult task....
Building a Scrollable Custom Tab Bar in SwiftUI
Whether you’re creating a social media app or a productivity tool, the tab bar interface can enhance the user experience by making it more intuitive and user-friendly. With SwiftUI’s TabView, creating a seamless and...
Customizing SwiftUI Bottom Sheet’s Background and Scrolling Behaviour
Since the release of iOS 16, it’s easy to create an interactive bottom sheet using SwiftUI. All you need to do is to embed a modifier called presentationDetents in a Sheet view. Earlier, we published a detailed tutorial to...