@Robinkanatzar I haven’t used it myself yet, but it seems really useful. You can see a few examples here: hackingwithswift.com/quick-sta
The second code block on that page is what I had in mind. Hope it helps!