Hi.
I’m trying to write the book code in my iPad swift playground.
But there is an error : ‘playgroundSharedDataDirectory’ is unavailable: playgroundSharedDataDirectory is not supported in Swift Playgrounds.
Could you help me? Many thanks in advance.
Hi @ryulxk
Welcome to the forums
Bad news, I’m afraid. playgroundSharedDataDirectory
isn’t supported on iOS. Another problem is that you can’t create shader files in the iOS playground, so the only way of entering shaders is a multi-line text string as in chapter 1. That gets old fast.
1 Like
Thank you for your replay @caroline
At least I can Import and read obj / usd meshes in SwiftUI.
1 Like
SceneKit works well in Playgrounds, so you can render your meshes. Just not low-level stuff yet