Ok, I understood my mistake and I want to share it with you :
To be able to test simple lines of code in pure Swift, you must not create a playground via the xcode 13 home popup, but directly from the xcode menu bar:
File> New> Playground
So xcode will create a single Swift file instead of an entire SwiftUI-ready package.
import UIKit
var greeting = "Hello, playground"
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags: