Sagar Unagar

Hi, I’m Sagar.

I’m an iOS engineer, runner, and dad. I’ve been making apps since 2015 and writing on this blog since 2019, mostly about Swift and SwiftUI.

Outside of work I enjoy running, strength training, reading, watching cricket, and spending time with my family and friends.

Browse all the articles I’ve written or learn more about me.

Recent writing

All posts →
  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