If you mean Swift Playgrounds, I think that's going to be available for tablets. Although there may be emulators you can use to run it on a Mac. I didn't really dig that deep the other day when I was looking at it, so perhaps someone will post a more definitive answer for you.