How can I connect to Outlet or Action?

I'm developing an app using Swift Playgrounds on my iPad. So, I have to connect to Outlet and Action, how can I do it? Is there something like a storyboard that can be used in Xcode?

Swift Playground uses SwiftUI. So no storyboard. Unless you import UIKit modules ?

Why have you to connect to IBOutlet of IBAction ? That's not how SwhitUI works.

Look at tutorials (like in WWDC, and this extract as quick intro):

"Platforms State of the Union". WWDC 2021 h t t p s : / / w w w.youtube.com/watch?v=3ELYyOwJCpM

Or search for Playground in Apple Books for complete tutorial.

How can I connect to Outlet or Action?
 
 
Q