Iva Horn

Notes from a software engineer for iPhone, iPad and Mac apps.

Memoji

Swift Posts

The following posts have been tagged with "Swift".

Swift Testing

June 25, 2024

During WWDC24, Apple finally introduced a “swifty” test framework to replace XCTest.

Workers Instead of Managers

May 18, 2024

Breaking down individual features of domain-oriented managers into dedicated implementations improves developer experience.

SwiftUI Platform-Dependent Padding Modifier

March 28, 2024

Some SwiftUI views I have require padding one platform and none on the other. To avoid preprocessor switches everywhere I created a custom view modifier for it.

Logging and Signposting Taxonomy in Concurrency

March 12, 2024

Having a file provider extension with multiple domains and processes and even more enumerators logging in parallel can become a mess. Leveraging the subsystem and category fields to the rescue.

MD5 Performance Test App

March 6, 2024

Out of necessity I created a minimalistic SwiftUI app which performs MD5 hashing to get a rough feeling how efficient it is on Apple devices.

Result Builders To Mock File System

February 27, 2024

I need to maintain a virtual file system in a CoreData database. Setting up test scenarios is tiresome, so I made use of result builders and its nice.

Convenient NSPredicate Initializers

February 22, 2024

There is a better way than to repeat the same or similar NSPredicate all the time and it is very nice to read.

Execution Order of Multiple Defer Blocks

February 16, 2024

I rarely need to use defer blocks and mostly it is for ending signpost intervals. I checked the possible situation of having multiple and in which order they are executed.

Signposting Macro

February 16, 2024

I was very excited about macros because they allow the reduction of boilerplate code like handling signposts. This macro reduces signposting in a method to a single word expression.

FileManager Throws Error on Getting File Provider Services

February 15, 2024

I found out how to successfully get replicated file provider services by URL on iOS which previously was impossible due to FileManager throwing a cryptic error.