Ole Begemann

Hi, I’m Ole. I’m an iOS and Mac developer from Berlin. I mainly write about software development on Apple platforms. More about me.

Recent Articles

  1. The RawRepresentable Protocol in Swift

    The raw value syntax for enums in Swift is “just” a shorthand for conformance to the RawRepresentable protocol. It’s easy to add this manually if you want to use otherwise unsupported types as raw values. More >

    November 23, 2016

  2. Passing an Array of Strings from Swift to C

    Swift has built-in support for bridging native strings to C strings, but this doesn’t include transparent bridging of arrays of strings to arrays of C strings. Here I discuss an internal helper function the Swift standard library uses for this purpose. More >

    October 27, 2016

  3. Generic Range Algorithms

    Half-open and closed ranges are not easily convertible to each other. If you implement an algorithm that works on ranges, that usually means you have to provide two overloads. But sometimes, making your code more generic is the better solution. More >

    October 13, 2016

  4. Optional Non-Escaping Closures

    Closures are generally non-escaping by default since Swift 3, but there are still some situations where that’s not the case. More >

    October 10, 2016