Posts tagged with "Swift".

Swift Build Times and Module Verification…

A diagnostic of slow Swift build times after modularizing, focusing on module verification and practical fixes to speed up compilation.

Generic View Controllers with Storyboards

Patterns and practical workarounds for using generic view controllers with storyboards when the storyboard needs a concrete class.

AnyDecodable

Presents `AnyDecodable`, a flexible approach to decoding JSON with `Codable` when the exact types are unknown ahead of time.

Splitting Your Xcode Project into Modules

Practical steps to modularize an Xcode project into separate frameworks and common pitfalls related to linking and build flags.

Unsafe Swift

A tutorial-style deep dive into working with unsafe pointers in Swift—memory layout, buffers, and patterns to work safely.

@DynamicFont

Describes a Swift UI component to centralize font choices and support Dynamic Type and Dark Mode consistently across the app.

Building Expectations

Introduces a simple Expectation object (backed by `NSCondition`) for waiting on asynchronous tasks outside of XCTest.

Quick TCP Server Using NSSocketPort

How to use `NSSocketPort` to spin up a simple TCP server for testing without adding heavyweight dependencies.

NSOperation KVO Pitfall

A deep-dive into an NSOperation KVO bug and practical guidance on managing asynchronous operation state to prevent hangs.