Ole Begemann

Hi, I’m Ole. I’m a developer from Berlin and co-author of Advanced Swift. Here, I mainly write about Swift and app development on Apple platforms. More about me.

Recent Articles

  1. clipped() doesn’t affect hit testing

    The clipped() modifier in SwiftUI doesn’t limit hit testing to the clipping region. The clipped view can still receive taps/clicks outside the visible area. Add .contentShape(Rectangle()) to change this behavior. More >

    November 24, 2022

  2. Xcode 14.0 generates wrong concurrency code for macOS targets

    Mac apps built with Xcode 14.0 and 14.0.1 may contain concurrency bugs because the Swift 5.7 compiler can generate invalid code when targeting the macOS 12 SDK. If you distribute Mac apps, you should build them with Xcode 13.4.1 until Xcode 14.1 is released. More >

    October 12, 2022

  3. Where View.task gets its main-actor isolation from

    If you call SwiftUI’s task modifier inside a view’s body property, the async operation will run on the main actor. However, this isn’t the case if you call task from a helper property or function that isn’t main-actor-annotated. Why? More >

    October 11, 2022