ScrollView Performance in SwiftUI
•
3 min read
SwiftUI
Performance
Slow scroll views are one of the most noticeable performance problems in SwiftUI apps. Optimizing them can make a significant difference, especially when dealing with
Searchable Modifier in SwiftUI
•
3 min read
SwiftUI
Search
The searchable modifier in SwiftUI makes it easy to add search functionality to your views. It provides a native search experience with automatic keyboard handling, search sug
AsyncImage in SwiftUI
•
3 min read
SwiftUI
Networking
AsyncImage is a SwiftUI view that simplifies loading and displaying images from remote URLs. It handles the asynchronous nature of network requests, provides loading states, and ma
TextField Styles in SwiftUI
•
3 min read
SwiftUI
UI
SwiftUI provides various built-in text field styles that allow you to customize the appearance of text input fields. Understanding these styles helps you create consistent and polish
Focus State in SwiftUI
•
3 min read
SwiftUI
Accessibility
Managing focus state in SwiftUI is essential for creating accessible and user-friendly forms and interactive interfaces. The `@FocusState` property wrapper allows you to progra
withAnimation
•
2 min read
SwiftUI
withAnimation
`withAnimation` wraps state changes to produce smooth transitions. It's one of the most common ways to add animation to a SwiftUI view.
Use Case
A common use case for `withAnimatio
Keyboard Navigation
•
11 min read
Accessibility
SwiftUI
Keyboard navigation enables users to navigate and interact with your app using only a keyboard or assistive input devices. In this post, we'll explore how to implement comprehensi
Audio Descriptions
•
11 min read
Accessibility
SwiftUI
Audio descriptions provide narration of visual elements in video content, making it accessible to blind and low vision users. In this post, we'll explore what audio descriptions ar
Captions
•
9 min read
Accessibility
SwiftUI
Captions and subtitles make video and audio content accessible to deaf and hard of hearing users, as well as non-native speakers and users in sound-sensitive environments. In this post, we'l
Voice Control
•
10 min read
Accessibility
SwiftUI
Voice Control enables users to navigate and interact with their devices entirely through voice commands, without touching the screen or using a keyboard. In this post, we'll explore how
VoiceOver
•
8 min read
Accessibility
SwiftUI
VoiceOver is Apple's screen reader that enables blind and low vision users to navigate and interact with iOS, iPadOS, and macOS devices. In this post, we'll explore how to make your SwiftUI
Differentiate Without Color
•
6 min read
Accessibility
SwiftUI
Color is a powerful design tool, but relying solely on color to convey information creates accessibility barriers for users with color blindness or low vision. In this pos
Larger Text
•
3 min read
Accessibility
SwiftUI
iOS lets users set their preferred text size system-wide through Accessibility settings. SwiftUI's dynamic type support handles most of this automatically — as long as you use semantic
Sufficient Contrast
•
6 min read
Accessibility
SwiftUI
Sufficient contrast makes your text and UI elements readable for everyone — especially users with low vision or color blindness. WCAG recommends a minimum ratio of 4.5:1 for nor
Reduced Motion
•
3 min read
Accessibility
SwiftUI
Animations
Reduced motion is an important accessibility feature that helps create a comfortable user experience for individuals sensitive to motion effects.
What is `Reduced Motion
Dark Mode
•
3 min read
Accessibility
SwiftUI
Dark Mode is an important feature that many users appreciate for its aesthetic appeal, and for people with visual impairments.
When do we need Dark Mode support?
Dark Mode support is e
How to Position Views in SwiftUI
•
1 min read
SwiftUI
Sometimes you want to position your views precisely within a SwiftUI layout.
How to place your view on a specific coordinate
You can use the [position](https://developer.app
Form in SwiftUI
•
3 min read
SwiftUI
Form
User input powers almost every app. From reminders to events, contacts, or sign-ups thats where `Form` comes in.
A Basic Contact Form
The simplest way to start is by grouping [TextField
Tracking Screen Views in SwiftUI with a Custom ViewModifier
•
2 min read
SwiftUI
ViewModifier
Analytics
In this post we'll create a small extension to track which screens are being viewed in a SwiftUI application.
Why Track Screen
Monospace digits
•
2 min read
SwiftUI
Monospace
Monospace digits are a type of font where each character takes up the same amount of horizontal space. This is particularly useful in programming and data presentation, as it allows for
Picker in SwiftUI
•
6 min read
SwiftUI
Picker
The `Picker` is a SwiftUI view that presents a set of options for the user to choose from. It can be displayed as a dropdown menu, a segmented control, or a wheel, depending on the context
Quick actions in SwiftUI
•
6 min read
SwiftUI
QuickActions
Quick actions are a powerful feature in SwiftUI that allows developers to add contextually relevant actions to their views. These actions can be triggered by user interactions
The Identifiable Protocol in Swift
•
10 min read
Swift
Identifiable
SwiftUI
The Identifiable protocol is a fundamental building block in Swift and SwiftUI that enables unique identification of instances. Understanding how to effectivel
Supporting Reduced Motion accessibility setting in SwiftUI
•
2 min read
SwiftUI
Accessibility
In this post, we will explore how to support the Reduced Motion accessibility setting in SwiftUI applications.
What is Reduced Motion
Contextmenu
•
3 min read
SwiftUI
Contextmenu
SwiftUI continues to surprise us with its elegant solutions to common UI patterns. One such gem is the
ViewThatFits
•
4 min read
SwiftUI
ViewThatFits
SwiftUI is all about declarative UI and adaptive design. But sometimes, you need your view to intelligently choose between multiple layout options depending on the available space. That's
Sensory feedback in SwiftUI
•
4 min read
SwiftUI
Trigger
This post explores the concept of sensory feedback in SwiftUI, a modifier to provide feedback to users based on their interactions.
What is Sensory Feedback in SwiftUI?
`
Custom Tabbar with SwiftUI
•
4 min read
SwiftUI
TabBar
In this post, we will explore how to create a custom tab bar using SwiftUI.
What is a TabView?
A is a
Building SwiftUI Debugging Utilities
•
3 min read
SwiftUI
Debug
In this post, we will explore how to create debugging utilities in SwiftUI to help diagnose and fix issues in your app.
Printing values
As you may know already you c
Building Editable Lists in SwiftUI
•
6 min read
SwiftUI
List
In this post, we will explore how to create editable lists in SwiftUI using a couple of different approaches using `EditButton()`, `@Environment(\.editMode)` and custom `Edi
Placing components within the Safe Area Inset
•
3 min read
SwiftUI
SafeArea
In this post, we will explore how to effectively place components within the Safe Area Inset in SwiftUI applications.
What is Safe Area Inset and [`.saf
Interpolation and formatting in Text
•
4 min read
SwiftUI
Interpolation
Formatting
In this post, we will explore how to use interpolation and formatting in SwiftUI's `Text` view. This is a powerful feature that allows you to create dy
SwiftUI Lists
•
19 min read
SwiftUI
List
Discover in SwiftUI, a powerful way to display collections of data in a scrollable format. In this post, we will explore how to c
SwiftUI Buttons
•
4 min read
SwiftUI
Button
In this post we will explore the different styles of buttons available in SwiftUI, how to create custom buttons, and some best practices for using buttons in your SwiftUI applications.
W
Adjust the intensity of colors in SwiftUI views
•
4 min read
SwiftUI
Colors
Brightness
SwiftUI provides a powerful way to create dynamic and visually appealing user interfaces. One of the features that can enhance the visual experienc
Difference between animations in SwiftUI
•
11 min read
SwiftUI
Animations
In this post, we will explore the difference between ) and [`withAnimation()
Gradients in text using foregroundStyle
•
3 min read
SwiftUI
In this post, we will explore how to create gradients in text using the `foregroundStyle` modifier in SwiftUI. This technique allows for visually appealing text effects that
Using the share sheet to share content
•
5 min read
SwiftUI
In this post, we will explore how to use the share sheet in SwiftUI to share content from your app. The share sheet allows users to share text, images, URLs, and other types
Handle plurals in Swift with inflection
•
2 min read
SwiftUI
Inflection is a powerful tool in Swift that allows developers to handle plurals and other linguistic variations in a more elegant way. This post will explore how to use infl
Fixing slow scrolling in Calendo
•
7 min read
Calendo
SwiftUI
In this post, I'll go through the steps which i took to fix a bug with slow scrolling in .
Interested in the development of Calendo? Read my previou
Exploring ControlGroup in SwiftUI
•
3 min read
ControlGroup
SwiftUI
In SwiftUI, a ControlGroup provides a way to visually group controls together, making your UI more intuitive and structured. It helps you present related controls
Accessibility in SwiftUI
•
9 min read
Accessibility
SwiftUI
Accessibility in app development is all about making sure everyone, regardless of their abilities, can use your app. Apple’s SwiftUI framework makes integrating accessibil
Navigation in SwiftUI
•
4 min read
SwiftUI
Navigation
Navigating the World of SwiftUI: A Comprehensive Guide
SwiftUI, Apple's declarative framework for building user interfaces, has revolutionized the way developers create apps
Deep linking in SwiftUI
•
4 min read
SwiftUI
Navigation
Deep linking is a powerful feature that allows users to navigate directly to specific content within your app using URLs. In SwiftUI, implementing deep linking can enhance user
Mastering animations in SwiftUI
•
4 min read
SwiftUI
Animation
SwiftUI, Apple's declarative framework for building user interfaces, offers powerful and flexible tools for creating animations. Whether you're looking to add subtle tran
Exploring the .inspector Modifier in SwiftUI
•
3 min read
Inspector
SwiftUI
SwiftUI continues to evolve, bringing new and powerful tools to developers.
One such tool is the .inspector modifier, introduced to enhance the user inte
Building an Asynchronous Button in SwiftUI
•
6 min read
SwiftUI
Asynchronus
Sometimes, we need to perform asynchronous tasks when a button is tapped in a SwiftUI application. For example, fetching data from a network request, saving
Safely unwrap optional values in SwiftUI bindings
•
4 min read
SwiftUI
Binding
Bindings are a powerful feature in SwiftUI that allow you to connect your views to your data. However, when working with optional values, you need to be ca
Why You Should Avoid Using AnyView in SwiftUI
•
4 min read
SwiftUI
AnyView
SwiftUI, Apple's declarative framework for building user interfaces, introduces a variety of new concepts and tools for developers.
One such tool is `AnyVie
@Environment variables
•
4 min read
Environment
SwiftUI
SwiftUI provides a way to pass data down the view hierarchy using @Environment variables. These variables are environment-dependent and can be accessed from any child view. Th
LabeledContent in SwiftUI
•
2 min read
SwiftUI
LabeledContent
As developers, we often need to display a value alongside a label, and manually arranging this can be difficult.
But `LabeledContent`, a powerful and versatile view that
How to monitor network in SwiftUI
•
3 min read
SwiftUI
Network
Network monitoring is crucial for maintaining robust and reliable applications.
In this blog post, we’ll explore how to implement network monitoring in Swift using App
SwiftUI ViewModifiers
•
6 min read
SwiftUI
ViewModifiers
SwiftUI ViewModifiers are a powerful tool for customizing and enhancing views in your app. They allow you to encapsulate common view modifications into reusable, composable uni
Implementing Sign in with Apple
•
6 min read
Sign in with Apple
SwiftUI
**Sign in with Apple** is a user-friendly authentication method that allows users to sign in to apps and websites using their Apple ID.
In this blog post, we'll
Pull-to-Refresh in SwiftUI
•
2 min read
SwiftUI
Pull-to-refresh is a common UI pattern in iOS apps.
It allows users to refresh the content of a view by pulling down on it.
In this post, we will learn how to implement pull-to-refre
ContentUnavailableView
•
5 min read
SwiftUI
ContentUnavailableView
In the ever-evolving world of SwiftUI, creating a seamless user experience involves handling empty states gracefully. Whether it's due to networking failures or empty
SwiftUI property wrappers
•
5 min read
SwiftUI
propertyWrapper
Let's dive into the fascinating world of SwiftUI property wrappers.
These powerful constructs allow you to manage data, state, and environment information in your Sw
Swipe actions in Swift
•
5 min read
SwiftUI
The issue:
Gestures, delegates, it can be a big struggle (especially for beginners).
If you use a lot of gestures then you’ll need to implement it over and over.
One of the problems is,
Safari in SwiftUI
•
2 min read
SwiftUI
You started playing around with SwiftUI, and you want to present a Safari(WebView), you search in the documentation, and..., SwiftUI has no native way to display a WebView!
To use Safari (SFSaf