Posts tagged with "macOS".

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.

Tweaking Animation Timing

Techniques for adjusting animation timing using custom timing functions to achieve more natural, spring-like motion.

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.

The Alert Hammer

A critique of macOS security alerts: why overuse of consent prompts harms usability and the goal of protecting users.

Thoughts on WWDC 19

Post-WWDC reflections highlighting notable platform updates and a closer look at SwiftUI.

UI Testing and NSScrollView

A short solution for UI tests that need to interact with off-screen elements inside `NSScrollView`.

Search Scopes in Xcode

A practical guide to Xcode's Find features with an emphasis on using search scopes to speed up code navigation.

Inverted Expectations

A pattern for asserting that something did *not* happen in tests, and how to write reliable inverted expectations.

Xcode: Comparing Build Settings

Practical tips for comparing and reasoning about Xcode build settings, from long-term usage experience.

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.

Is There Hope for the Mac App Store?

A reflection on the Mac App Store's current problems and ideas for improvements that would help both users and developers.

Rewinding Animations

A short tip on how to run spring animations in reverse (for example by using a negative speed) and why that helps achieve natural UI effects.

Adopting Dark Mode and Older Macs

Approaches for adopting Dark Mode while keeping compatibility with older macOS versions and APIs.

NSOperation KVO Pitfall

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

The Developers Union

A call for developers to organize and advocate for App Store changes—like free trials—that can improve sustainability for users and creators.

Managing iOS UI Testing Fixtures

Practical techniques for creating and sharing deterministic fixtures for iOS UI tests, helping avoid flakiness and sandboxing pitfalls.