I started from:
https://www.hackingwithswift.com/forums/swiftui/urlsession-shared-data-from-url-fails-in-swift-playgrounds-for-mac/14987
in the playground, it is clear to me where
needsIndefiniteExecution = true
goes, simply at the top of the script. In the app I am making, I don’t know where it goes. When I put it at the top of the file, it complains about not being able to run in a global scope. Is there a difference between the playground and the app (made in Swift playgrounds)?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: