Sagar Unagar

Blog

54 articles on Swift, SwiftUI, and building apps for Apple platforms.

2026

  1. #file vs #filePath in Swift Tests - Cleaner, Cacheable Builds
  2. XCTUnwrap in Swift - Stop Force Unwrapping in Unit Tests
  3. Xcode Code Snippets - Automate Boilerplate with Placeholders
  4. Dynamic Type for Custom Fonts in SwiftUI - A 4-Line Fix
  5. Swift Logging - Use OSLog Instead of print()
  6. SwiftUI .task vs .onAppear - Async Work Done Right
  7. Replacing Closures with Key Paths - Cleaner Swift Code
  8. Swift's New if let Syntax - Cleaner Optional Unwrapping
  9. Swift @discardableResult - Silence Unused Result Warnings
  10. Designing for iPhone Duo - HIG Guide in 5 Minutes
  11. Conditional Breakpoints in Xcode - Debug Specific States Faster
  12. Fix Sluggish SwiftUI Previews Instantly With Static Mock Data
  13. SwiftUI geometryGroup() - Isolate View Geometry for Smooth Animations
  14. SwiftUI concentricCornerRadii in iOS 27 - Complete GeometryReader guide
  15. SwiftUI Document APIs in 2027 Releases - Everything You Need to Know
  16. AsyncImage Finally Gets Caching in SwiftUI
  17. SwiftUI @ContentBuilder - Faster Type Checking in Xcode 27
  18. SwiftUI Text Selection Improvements in iOS 27
  19. Mastering SwiftUI Toolbar Overflow Menus in iOS 27
  20. SwiftUI .crossFade Navigation Transition in iOS 27
  21. Reordering Beyond List - SwiftUI iOS 27
  22. SwiftUI's new item based presentations in iOS 27
  23. SwiftUI's New .prominent Tab in iOS 27 Is Not a Floating Action Button
  24. SwiftUI Localization Guide - Change Language Without Restarting the App
  25. Swift Sendable Explained - Compile Time Data Race Prevention in Swift Concurrency
  26. Swift Task Lifecycle Management - Structured vs Unstructured Concurrency
  27. ContentUnavailableView in SwiftUI - Complete Guide With Examples
  28. Accelerate Framework in Swift - Complete Guide to High-Performance Computing
  29. Understanding 'indirect' keyword in Swift - Recursive Enums Explained Clearly
  30. Understanding inout Parameters in Swift - How They Work and When to Use Them
  31. associatedtype in Swift Explained - A Complete Guide with SwiftUI Examples
  32. Lazy Properties in Swift - Why They Don’t Always Work in SwiftUI
  33. Mutex in Swift - Protecting Shared Mutable State with Locks
  34. Animatable in SwiftUI Explained - Complete Guide with Examples & Deep Dive
  35. Swift Algorithms - Apple’s Hidden Collection and Sequence APIs You Should Be Using
  36. Swift some vs any - Understanding Opaque Types and Existential Types
  37. Thread Safety in Swift - Preventing Data Races with Locks, Queues, and Actors
  38. Mastering Geometry in SwiftUI - GeometryReader, GeometryProxy & onGeometryChange
  39. Static vs Dynamic Dispatch in Swift - How Method Dispatch Really Works
  40. Copy-on-Write(CoW) in Swift - How It Works and Why It Optimizes Memory
  41. AsyncStream & AsyncThrowingStream in Swift - Real-Time Data Sync Explained
  42. Designing a Scalable App-Wide Theming System in SwiftUI
  43. SwiftUI Observation Framework Explained - Using @Observable in iOS 17
  44. Xcode Templates Explained - Speed Up iOS Development by Eliminating Boilerplate
  45. InlineArray in Swift - Memory Efficient Fixed-Size Arrays

2025

  1. Zoom Navigation Transitions in SwiftUI
  2. SwiftUI Fonts Explained - System Styles, Modifiers and Accessibility
  3. How to Create a Signature Canvas in iOS Using SwiftUI and PencilKit?
  4. SwiftUI App Localization in Xcode — Easy, Scalable
  5. How to add SegmentedControl in List that scrolls with a List in SwiftUI?

2021

  1. Sign in with Apple - SwiftUI, MVVM

2020

  1. Understanding gradients using SwiftUI
  2. Property wrappers in SwiftUI

2019

  1. Basic structure of SwiftUI project