How to use playground in Swift file
Issue #998
Traditionally, if we wanted to quickly test a function or a piece of logic, we would open a separate Playground file (.playground
).
From Xcode 26 we can have access to the new #Playground
macro in Swift 6.2. This allows us to declare a …