|
Hi, Below I've included the working, bare-bones app that displays two SpriteKit SKNodes in a view on one side of the screen, and (what should be) the selected node id in a view on the other side of the screen. However, the information is not propagating from one side to the other. I'm sure I'm missing something fundamental, so if anyone could assist I'd be very grateful. AppCode:
Main Code:
|
|
Hi All, Ok, I've solved it...or, at least, I've got it working (and I'm aware those are possibly two different things). Below is the working code, but if there is a preferred way of resolving it I'd be glad to hear it. App Code:
Main Code:
|
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.