I thought this existed, but never managed to find the API. Probably because this is a top-level function rather than a type with an initialiser, which isn’t what I’d expect in Swift. twitter.com/kyleve/status/1575353657825972224