xed
I’ve been using this command for a while, but realize not everyone might know it. xed the Xcode text editor invocation tool. It let’s you open, create and handle Xcode related files in many ways, ...
I’ve been using this command for a while, but realize not everyone might know it. xed the Xcode text editor invocation tool. It let’s you open, create and handle Xcode related files in many ways, ...
WCErrorCodePayloadTooLarge I tried to send some data from the companion app to my watchOS application and ran into this error. Neither the error message itself, nor the documentation gives any i...
Updated for Swift 5.7 (Xcode 14) In this post I will walk through the steps of creating a simple command-line tool with Swift Package Manager. The finished app will print out information about...
There’s situations where a failing code path is there, but under normal circumstances will not happen and therefore should not be handled as if it could. For example, retrieving the url of a file i...
This is a sequence that I’ve been using quite a lot since I started to learn Vim. I write a lot of markdown and for H1 and H2 headings I often use the underlining style of setting === or --- under...
zsh enhanced by oh-my-zsh has been my shell of choice for the longest time. Partly because of its functionality and vast plugin eco-system, but quite frankly, also because of the time I had sunk in...
The Problem When implementing MVVM with SwiftUI and Combine, we often use an ObservableObject as the ViewModel. As an example, imagine a view with a TextField and a Text view that displays the la...
SE-0244 enables generic protocols to be used as return types. (i.e. ones that have associated types or references to Self) This means that given a protocol with an associated type, such as: proto...
Here is an interesting way of amending (fixing) an older commit in Git. Sometimes I realize not right away that a file wasn’t included in commit and I’ve already commited on top of it. Now I can’t...
As a small challenge I wanted to build a tabbed PageView for my current pet project. The basic implementation of SwiftUI’s TabView allows us to set the style to PageTabViewStyle like TabView { ...