Adding Horizontal Padding to TextEditor in SwiftUI with contentMargins
Learn how to add horizontal padding inside a TextEditor without affecting the scrollbar using the contentMargins modifier introduced in iOS 17.
// 147 articles available
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.
Learn how to create a Material Design-style floating action button in SwiftUI that intelligently moves above the keyboard and avoids blocking text input fields.
How to detect when users scroll to the bottom of a list and automatically load more content.
Learn how to add custom toolbar buttons above the keyboard in SwiftUI using the .toolbar modifier with keyboard placement for Done buttons, formatting controls, and more.
Learn how to prevent users from taking screenshots of sensitive content in your SwiftUI app using field-level security and UIKit bridging for financial, medical, or private data protection.
Learn how to create a custom input accessory view that stays above the keyboard, similar to iMessage's input bar.
How to traverse the view controller hierarchy to find the currently visible view controller.
Learn how to add pull-to-refresh functionality to custom ScrollViews in SwiftUI without using List, perfect for custom layouts and complex scroll content.
Learn how to build skeleton loading screens with animated shimmer effects in SwiftUI using gradients, AnimatableModifier, and reusable view modifiers for a polished loading experience.
Learn how to dump all SwiftUI environment values for debugging purposes.
Learn how to display human-readable relative timestamps like "5 minutes ago" or "yesterday" using RelativeDateTimeFormatter in your SwiftUI apps.
How to generate random emoji characters in Swift using Unicode scalar ranges.
Learn how to implement undo/redo functionality in SwiftUI using UndoManager, including environment injection, registering actions, and creating undo buttons for professional editing experiences.
How to check available and total disk space on iOS devices using URL resource values.
Learn how to fix the Firebase Crashlytics dSYM files not properly being uploaded to Firebase after upgrading to Xcode 15/16.
Learn how to access and configure environment variables in Swift applications for configuration management, API keys, and feature toggles.
Learn how to align single and multiline text in SwiftUI.
Learn how to use ScrollViewReader and ScrollViewProxy to scroll a SwiftUI list to a specific item automatically.
Learn how to detect when a context menu is open in SwiftUI.
Learn how to create a WebView/WKWebView with a transparent/clear background in SwiftUI.
Learn how to accept user input in an alert using TextField or SecureField.
The keyboard doesn't always dismiss itself when you expect it to. Here are several approaches to dismissing it programmatically and through user interaction.
Learn how to create a modifier that limits the characters that can be entered in a TextEditor or TextField view in SwiftUI.