SwiftUI
-

Fix: SwiftUI Form Section Buttons Not Horizontally Centered
Why buttons and text in a SwiftUI Form Section hug the leading edge, and the frame and Spacer tricks that actually center…
-

Fix: @State Change Not Triggering View Re-render in SwiftUI
Learn why @State changes sometimes skip parent view re-renders in SwiftUI. Understand dependency tracking vs ownership and how Binding affects updates.
-

Fix: SwiftUI List Not Updating When Appending to an Array in a Class
Appending to an array inside a class doesn’t refresh SwiftUI because the object isn’t observable. Fix it with @Observable or ObservableObject and…
-

SwiftUI Timer: How to Repeat Without RunLoop Bugs
Replace Timer and RunLoop with TimelineView, Task.sleep, AsyncTimerSequence or Timer.publish — and stop timers that keep firing after a view disappears.
-

Fix: tabBarMinimizeBehavior(.onScrollDown) Not Expanding on Scroll Up in SwiftUI
Learn why SwiftUI’s native tabBarMinimizeBehavior doesn’t expand on scroll reversal and how to build a responsive custom tab bar using onScrollGeometryChange.
-

Fix: Sheet presentationSizing Fitted Height Broken by NavigationStack in SwiftUI
Learn why presentationSizing(.fitted) fails with NavigationStack in SwiftUI sheets and the overlay workaround to restore proper height on iPadOS 18+.
-

Fix: TextField Scroll Delay Above Keyboard in SwiftUI List
Eliminate the 0.5-second delay when a TextField in a SwiftUI List scrolls above the keyboard. Two proven fixes with code.
-

Fix: SwiftUI Child View Changes Not Propagating to Parent State Array
Learn why SwiftUI child view modifications to struct properties don’t update the parent array and how to fix it using @Binding and…
-

Fix: LazyVStack Scroll Position Lost When Prepending Items in iOS 27
Fix LazyVStack scrollTo failures in iOS 27: open at bottom, prepend items without jumping. Use scrollPosition, scrollTargetLayout, and onScrollPhaseChange.
