Skip to content


Xcode Preview – BSServiceConnectionErrorDomain error / crash

TL;DR Solution Add .environmentObject(AppData()) modifier to the preview struct. Preview Crash Recently, I ran into an issue where I couldn’t preview my changes after introducing non-static content. The error in question is Cannot preview in this file — The operation couldn’t be completed. (BSServiceConnectionErrorDomain error 3.) Naturally the next step is running the diagnostics which was a bit hairy because the Reveal… Read More »Xcode Preview – BSServiceConnectionErrorDomain error / crash

SwiftUI Property Wrappers

There’s no tl;dr for this topic since it does require some foundational knowledge. Donny Wals wrote up a great article at on the differences and how to choose the right one for the occasion. @State @State property wrappers are great when no outside view will access the data hence should be marked private as follows @State private var username @Binding Passing… Read More »SwiftUI Property Wrappers

Let’s Encrypt: Manually

Watching the tech industry moving toward SSL certs that are both free and accessible ( with a little know-how ) has been a joy. Have SSH access to your server? Great, get yourself setup with Certbot and you are good to go. But, what if you need to generate a free SSL when you don’t have SSH access and you don’t want… Read More »Let’s Encrypt: Manually