Comparable

Posted on Thu 19 August 2021 in swift

Slowly getting back into the rhythym with 100 Days of SwiftUI after a break. I tackled Day 71 yesterday where we add Comparable conformance to a Codable struct and downloaded some data from Wikipedia.

Unfortuately, I'm running into a bug where the simulator freezes every minute or two due to a breakpoint inside Apple's stuff, _os_semaphore_dispose.cold.1. The recommendation on the Apple developer forums is to rollback to Xcode Beta 4. I suppose I could upgrade my OS to the beta, since that's probably of why Apple didn't catch it before releasing Xcode Beta 5. Hardly the end of the world, it just makes app development kinda slow.

Here's a sketch straight out of the Generative Design book, redone in SwiftUI. Moire from two overlapping sets of concentric circles.

Moire Circles