I am making an PlaygroundBook for Swift Playgrounds [Not Xcode Playgrounds]. I want pass data between playground pages.
Example, I have an public variable in UserModule and its value is 0. In first page, user change this variable to 1. When user go to second page, variable's value is 0. But I want its value is user's value (1). How can I do that?
I'm using SwiftUI. I tried to use UserDefaults but UserDefaults won't work truly in Swift Playgrounds. And also try to save datas to a JSON file but Playground won't write files (only read). I also tried - https://stackoverflow.com/questions/61718242/accessing-variables-from-different-pages-in-swift-playground this but it isn't work too.
Selecting any option will automatically load the page