Sagar Unagar

Posts tagged “swift”

32 articles

2026

  1. #file vs #filePath in Swift Tests - Cleaner, Cacheable Builds
  2. XCTUnwrap in Swift - Stop Force Unwrapping in Unit Tests
  3. Swift Logging - Use OSLog Instead of print()
  4. Replacing Closures with Key Paths - Cleaner Swift Code
  5. Swift's New if let Syntax - Cleaner Optional Unwrapping
  6. Swift @discardableResult - Silence Unused Result Warnings
  7. SwiftUI Localization Guide - Change Language Without Restarting the App
  8. Swift Sendable Explained - Compile Time Data Race Prevention in Swift Concurrency
  9. Swift Task Lifecycle Management - Structured vs Unstructured Concurrency
  10. Accelerate Framework in Swift - Complete Guide to High-Performance Computing
  11. Understanding 'indirect' keyword in Swift - Recursive Enums Explained Clearly
  12. Understanding inout Parameters in Swift - How They Work and When to Use Them
  13. associatedtype in Swift Explained - A Complete Guide with SwiftUI Examples
  14. Lazy Properties in Swift - Why They Don’t Always Work in SwiftUI
  15. Mutex in Swift - Protecting Shared Mutable State with Locks
  16. Swift Algorithms - Apple’s Hidden Collection and Sequence APIs You Should Be Using
  17. Swift some vs any - Understanding Opaque Types and Existential Types
  18. Thread Safety in Swift - Preventing Data Races with Locks, Queues, and Actors
  19. Mastering Geometry in SwiftUI - GeometryReader, GeometryProxy & onGeometryChange
  20. Static vs Dynamic Dispatch in Swift - How Method Dispatch Really Works
  21. Copy-on-Write(CoW) in Swift - How It Works and Why It Optimizes Memory
  22. AsyncStream & AsyncThrowingStream in Swift - Real-Time Data Sync Explained
  23. Designing a Scalable App-Wide Theming System in SwiftUI
  24. SwiftUI Observation Framework Explained - Using @Observable in iOS 17
  25. InlineArray in Swift - Memory Efficient Fixed-Size Arrays

2025

  1. How to Create a Signature Canvas in iOS Using SwiftUI and PencilKit?
  2. SwiftUI App Localization in Xcode — Easy, Scalable
  3. 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