Just came across this and surprisingly, I'm currently on Sonoma 14.6.1 and after 10 months, this issue is still not fixed.
Thanks for the workaround and it works amazingly as expected.
Topic:
Programming Languages
SubTopic:
Swift
Tags: