Post

Replies

Boosts

Views

Activity

Comment on Swift Playground: "Expression are note allowed at the top level"
A macOS Command Line Tool is almost like a Playground if you want to play with just Swift coding basics (no UIKit or SwiftUI). It's easier to write Swift code without having to spin up an iOS Simulator. Another benefit is you can debug the code with a breakpoint (blue flag) and you can step through it line by line to watch it run execute each command.
Dec ’21
Comment on Swift Playground: "Expression are note allowed at the top level"
A macOS Command Line Tool is almost like a Playground if you want to play with just Swift coding basics (no UIKit or SwiftUI). It's easier to write Swift code without having to spin up an iOS Simulator. Another benefit is you can debug the code with a breakpoint (blue flag) and you can step through it line by line to watch it run execute each command.
Replies
Boosts
Views
Activity
Dec ’21