playground vs playgroundbook, which to use?

My use case is that I'm reading a book about swift on my iPad. I'm using the Swift Playgrounds app to test out what I'm learning there. But there are times when I want to look at that code in Xcode and try to incorporate it into an app I'm working on. I see you can create a regular .playground on the iPad and then it can be opened on either the iPad or Xcode on the Mac.

Are there any advantages to using a playgroundbook?

I find it very confusing that you have two different file formats that do almost the same thing. Especially now that the Swift Playgrounds app is also available on the Mac.

With Playground Books you can author more involved experiences... chapters, pages... I use them to teach kids how to code or to guide them through a particular concept. Same with the Learn to Code playground books, they're brilliant examples of using a series of lessons to teach kids a certain set of concepts.

But if you're writing code to ultimately live in a project in Xcode I think you're good with just the plain old playground...
playground vs playgroundbook, which to use?
 
 
Q