Swift is open-source now, so it's not really Apple-dependent. Using the Swift Playgrounds doesn't mean your kid will be locked into the Apple ecosystem.
https://github.com/open-swift https://github.com/VeniceX https://github.com/Zewo
This is just one example.