How to Resize an Image in SwiftUI
Learn how to resize images in SwiftUI using resizable(), frame(), and different content modes like scaledToFit and scaledToFill.
// 109 articles available
Learn how to resize images in SwiftUI using resizable(), frame(), and different content modes like scaledToFit and scaledToFill.
Learn how to show loading spinners in SwiftUI using ProgressView, including customization options and common loading patterns.
Learn how to detect when users shake their device in SwiftUI by bridging to UIKit's motion events and creating a reusable view modifier.
When the iOS Simulator refuses to launch, gets stuck booting, or shows a black screen, here's how to diagnose and fix it.
Learn how to use AlarmKit to schedule alarms that appear in the system Clock app, giving your app native alarm integration on iOS 26.
Learn how to properly support dark mode in SwiftUI using semantic colors, adaptive color assets, and color scheme detection.
Learn how to use SF Symbols in your SwiftUI apps, including sizing, coloring, animations, and finding the right symbol for your needs.
Understand the difference between @State and @Binding in SwiftUI, when to use each, and how they work together to manage data flow between views.
Learn how to use AppStore.ageRatingCode to read your app's current age rating and react to rating changes for parental consent compliance.
When Xcode's indexing gets stuck or takes forever, your autocomplete and jump-to-definition stop working. Here's how to get it unstuck.
Learn how to use ToolbarSpacer to add fixed and flexible spacing between toolbar items in SwiftUI, new in iOS 26.
Learn different approaches for handling optional ObservableObject instances in SwiftUI, from conditional rendering to wrapper patterns.
Failable initializers offer a cleaner alternative to if-let statements when your SwiftUI views depend on optional data.
Learn how to use the presentationDetents modifier to control sheet heights in SwiftUI, creating interactive bottom sheets similar to Apple Maps and Music.
When SwiftUI previews fail with cryptic errors or just spin forever, here's how to diagnose and fix the most common causes.
PermissionKit lets children request parental permission to communicate with new contacts directly through Messages. Here's how to integrate it into your social or messaging app to create safer communication experiences.
Learn how to use the contentShape modifier to expand or customize the tappable area of your SwiftUI views, making buttons and interactive elements more user-friendly.
Safe areas keep your content visible and interactive. Here's how they work in SwiftUI and when you should ignore them.
Learn how to detect app lifecycle changes in SwiftUI, save state when your app enters the background, and restore it when users return, using scenePhase and UIApplication notifications.
When building UIs that stream AI-generated content using Apple's Foundation Models framework, testing intermediate states in Xcode Previews requires some creative workarounds. Here's how to preview partially generated content without calling the actual model.
How to add custom fonts to your SwiftUI app, use system font variants, and ensure your typography scales properly with Dynamic Type.
Understanding the difference between frame alignment and stack alignment is the key to centering views exactly where you want them in SwiftUI.
Learn how to add horizontal padding inside a TextEditor without affecting the scrollbar using the contentMargins modifier introduced in iOS 17.
Learn how to detect when users enable Low Power Mode and automatically reduce animations, refresh rates, and visual effects to preserve battery life in your SwiftUI app.
How to present a second sheet from within an already-presented sheet in SwiftUI.
Learn how to symbolicate crash logs from App Store Connect and Xcode Cloud to debug production crashes effectively.
Learn how to integrate UIKit's App Delegate into your SwiftUI app for handling app lifecycle events and system callbacks.
Learn how to access SwiftUI environment values in View extensions using ViewModifiers for clean, reusable code.
Learn how to create and display QR codes in SwiftUI using Core Image filters.
Learn how to search SF Symbols in Xcode.