Swift & SwiftUI
Swift and SwiftUI explained with working code examples: concurrency, data flow, layout and common compiler errors.
-
Fix: Core Data Delete Object Fails at Runtime in Swift
Learn why context.delete() crashes with fetched arrays and how to properly delete Core Data objects with fetch requests and context saving.
-

How to Use Opaque Return Types with ‘some’ in SwiftUI
Learn what the ‘some’ keyword means in SwiftUI, how opaque return types work, and why they matter for View bodies and protocol…
-
Fix: Detect Live TextField Changes in SwiftUI with onChange and Custom Bindings
Learn how to detect every keystroke in a SwiftUI TextField using onChange (iOS 14+) or custom bindings for older versions.
-
Fix: Embed SwiftUI View in UIKit UIView Using UIHostingController
Learn how to add a SwiftUI view inside a UIKit UIView using UIHostingController and child view controller containment.
-
Fix: UIView Bounce Animation Not Working in UIKit
Learn two proven ways to add a bounce effect to a UIView — UIKit Dynamics and spring damping — with copy‑paste Swift…
-

How to Trigger an Action After a Delay in SwiftUI
Learn two reliable ways to run code after a delay in SwiftUI: modern async/await with task() and the classic DispatchQueue approach.
-

Fix: Disable Interactive Dismissal of Presented View Controller in iOS 13+
Stop pull-to-dismiss on pageSheet and formSheet modals in iOS 13+. Use isModalInPresentation or the presentation delegate to keep sheets on screen.
-
Fix: SF Symbol Size Not Changing in SwiftUI
Learn why SF Symbols ignore size modifiers and how to resize them with .font() or .imageScale() in SwiftUI. Includes code examples for…