Note On a Mac with Xcode installed, or on an iPad with Swift Playgrounds, you can open this chapter as a playground. Playgrounds allow you to edit the code listings and see the results immediately. (Note in page 3)
(I would like to open the chapter or book: Swift Programming Language in Swift Playground on iPad)
https://books.apple.com/ve/book/the-swift-programming-language-swift-5-7-beta/id1002622538?l=en-GB
Best regards
I would like to open … in Swift Playground on iPad
I don’t think there’s a good way to do that these days.
The copy of The Swift Programming Language (TSPL) you’re working from, the one published via Apple Books, is very old. Specifically, it’s associated with Swift 5.7 and the latest version, available on the Swift site itself, is for Swift 6.3: The Swift Programming Language
Note The Apple Books version hasn’t been updated because TSPL moved to a DocC production pipeline, and that isn’t able to easily render to the document format required by Apple Books.
Given the age of that copy of the TSPL, it’s not a surprise that the link it references [1] no longer works.
I went looking for the equivalent link on the most recent TSPL, but there isn’t one. Here’s the corresponding page, but the note box with the link is gone.
I think you could reasonably argue that we should bring this back. Normally I’d suggest you file a bug requesting exactly that. However, I did some spelunking and it seems that we already have such a bug: Support interactivity in "A Swift Tour".
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] https://docs.swift.org/swift-book/GuidedTour/GuidedTour.playground.zip