Portrait

I2H3

Notes from work as an app developer for iPhones, iPads and Macs.

RSS Icon GitHub Mastodon

Reveal <private> Logs on macOS Sonoma

While I am still convinced the unified logging system is great, the masking of value interpolations gets into my way often enough, too. The way to unmask those values has changed drastically from macOS release to macOS release.

Why I Chose CoreData Instead of SwiftData

SwiftData is very neat. Concise, simple and fast. I quickly hit show stoppers, though.

Documentation Comments on Test Methods

I just want to share a minor inspiration which might help in daily business with unit tests.

@Attribute(.unique) Causes Model Replacement

While making my first experiences with SwiftData, I also used @Attribute(.unique) on a model property. I expected model insertion to throw an error or crash in case this constraint is violated. The actual behaviour was rather surprising.

Logging Macro

With the introduction of Swift macros in 2023, I have came across a few situations in which they have become useful. One is the reduction of boilerplate code. In example the automatic declaration of a Logger property on a type.