> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/ios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/ios/swift-playgrounds.md).

# Swift Playgrounds

╱🚧 under construction

[dev](/ios/master.md) ⟩ [swift](/ios/swift.md) ⟩ playgrounds&#x20;

{% hint style="success" %}

{% endhint %}

{% tabs %}
{% tab title="📘 手冊" %}

* Dev ⟩ [Exploring SwiftUI Sample Apps](https://developer.apple.com/tutorials/Sample-Apps)
* [Swift Playgrounds](https://developer.apple.com/swift-playgrounds/) ⟩&#x20;
  * [Documentation](https://developer.apple.com/documentation/swift_playgrounds)
  * [App Store](https://apps.apple.com/tw/app/id908519492)
  * [Support](https://developer.apple.com/support/swift-playgrounds/), [Release Notes](https://developer.apple.com/swift-playgrounds/release-notes/)
  * [Swift Playgrounds Author Template](https://developer.apple.com/download/more/?=Swift%20Playgrounds%20Author%20Template)
  * [Playground book documentation](https://developer.apple.com/documentation/swift_playgrounds)
* [WWDC Videos about Playgrounds](https://developer.apple.com/videos/all-videos/?q=playgrounds)
  {% endtab %}

{% tab title="📗 參考" %}

* [x] [The Evolution of Swift Playgrounds](https://medium.com/swlh/the-evolution-of-swift-playgrounds-39bf168be8f)
* [ ] Sam ⟩ [Can You Really Build an App Using Only iPad and Swift Playgrounds 4?](https://betterprogramming.pub/can-you-really-build-an-app-using-only-ipad-swift-playgrounds-4-f3e9c484b3ee)
* [x] [Write SwiftUI Entirely on an iPad Using Swift Playgrounds](https://medium.com/better-programming/write-swiftui-entirely-on-an-ipad-using-swift-playgrounds-f48364e50c9a) - [Rob Sturgeon](https://robsturgeon.medium.com/?source=post_page-----f48364e50c9a--------------------------------)
* [ ] 彼得潘 ⟩&#x20;
  * [ ] [在 iPad Swift Playgrounds & Xcode 共享 Swift Playgrounds App (swiftpm)](https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%9C%A8-ipad-swift-playgrounds-xcode-%E5%BB%BA%E7%AB%8B-%E5%85%B1%E4%BA%AB-swift-playgrounds-app-swiftpm-73b8f5215c50)
  * [ ] iPad Swift Playgrounds 開發 iOS App 初體驗
* [x] Hacking with Swift ⟩&#x20;
  * [x] [Swift Playgrounds](https://www.hackingwithswift.com/playgrounds)
  * [x] [Build your First SwiftUI app with Swift Playgrounds](https://www.hackingwithswift.com/articles/245/build-your-first-swiftui-app-with-swift-playgrounds)
    {% endtab %}

{% tab title="🗣 討論" %}

* Developer Forum ⟩ [Swift Playgrounds](https://developer.apple.com/forums/tags/swift-playgrounds/)
  {% endtab %}

{% tab title="🌀 套件" %}

* [🐶 PlaygroundConsole](/ios/master/todo/custom-types/playgroundconsole.md)
* [Image(playground:)](/ios/custom/ext/image/image-playground.md)
  {% endtab %}

{% tab title="🛠 工具" %}

* [Swift Playgrounds for iPad](https://apps.apple.com/us/app/swift-playgrounds/id908519492)
* [Swift Playgrounds for Mac](https://apps.apple.com/us/app/swift-playgrounds/id1496833156?mt=12)
  {% endtab %}

{% tab title="🔲 待辦" %}

* [ ] put a playground file in swift package?
  {% endtab %}
  {% endtabs %}

* **Blank** (template) will create a new `.playgroundbook` file that can be opened in **Swift Playgrounds app** on an **iPad** and on a **Mac**, but **cannot** be opened by **Xcode** on a **Mac**.

* **Xcode Playground** (template) uses the same `.playground` file type that **Xcode** uses, giving you the ability to edit the same file on both devices (iPad and Mac). 不過，因為現在在 Mac 上也有 Swift Playgrounds 這個 app 可以打開 `.playgroundbook` 這類的檔案，所以這個模板我認為應該可以退休了。
