#

swiftui

SwiftUI framework for declarative UI on Apple platforms

ProgrammingFix NSHostingView SwiftUI Drag Gestures macOS Tahoe 26.2

Resolve NSHostingView not receiving SwiftUI drag gestures or mouse events behind another layer on macOS Tahoe 26.2. Custom subclass, hit-testing fixes, and double-wrapping for AppKit/SwiftUI hybrids on M1 Pro.

1 answer 1 view
OSNSEvent Global Monitor in Sandboxed macOS Apps

Does NSEvent.addGlobalMonitorForEvents work in app sandbox macOS apps with accessibility permission? Explore development quirks, App Store risks, and CGEventTap alternative for reliable global keyboard monitoring in SwiftUI utilities.

1 answer 1 view
Mobile DevSwiftUI TextField Sheet Keyboard Delay: Fix Multi-Taps

Fix SwiftUI TextField in sheets requiring multiple taps for keyboard due to onAppear state loading, unwanted text highlight. Use @FocusState, UIKit wrappers, pre-load state for instant iOS response.

1 answer 1 view
Mobile DevTipKit Dismissal: Tapping Outside Permanent?

Understand TipKit's expected dismissal behavior in SwiftUI: tapping outside dismisses visually but doesn't mark as displayed. Learn permanent dismissal patterns with MaxDisplayCount, Rules, Events, and gestures for iOS 17+ apps.

1 answer 1 view
Mobile DevSwift AppIntent: Return Custom Struct Without AppEntity

Learn how to return a custom struct from AppIntent's perform() in Swift without AppEntity. Use ShowsSnippetView for UI, ProvidesDialog for text, or AppEntity for structured values in AppIntents.

1 answer 1 view
Mobile DevSwiftUI: Smooth Autoscroll Drag in ScrollView

Master smooth horizontal autoscroll in SwiftUI ScrollView during edge drags. Keep dragged items under finger using coordinate conversion, ScrollViewReader, and avoid CADisplayLink stutters for pixel-perfect alignment.

1 answer 1 view
Mobile DeviOS Swipe Transition: Native API for Camera/Safari 'Liquid Glass' Effect

Implement the native iOS swipe transition effect seen in the Camera app's mode switcher or Safari's tab groups. Explore UIKit and SwiftUI approaches for the 'Liquid Glass' interaction.

1 answer 1 view
Mobile DevSwiftUI ScrollView: Keep Expanded Items Visible in LazyVStack

Learn how to maintain visibility of expanded items in SwiftUI ScrollView with LazyVStack. Solutions include offset tracking, scrollTo, and VStack alternatives.

1 answer 1 view
Mobile DevBest AI Swift & SwiftUI Code Generators for iOS Apps

Discover the best AI Swift & SwiftUI code generators for native iOS apps. Compare tools on code quality, Xcode integration, debugging, and pricing to boost your development.

1 answer 1 view