在 Mac 上管理 Playground
在「我的 Playground」視窗中,您可以檢視並打開所下載或建立的 Playground。您也可以加入、複製、重新命名、分享、重置或刪除 Playground。
【注意】標題旁邊帶有 的 Playground 為尚未打開過的 Playground。
檢視您已下載或建立的 Playground
在 Mac 上的 Swift Playgrounds App 中,前往「我的 Playground」畫面。
若您在「更多 Playgrounds」畫面上,請按一下左上角附近的 。
打開 Playground
在 Mac 上的 Swift Playgrounds App 中,前往「我的 Playground」畫面。
若您在「更多 Playgrounds」畫面上,請按一下左上角附近的 。
若您要打開的 Playground 不在「我的 Playground」畫面上(例如,若您接收的 Playground 來自他人),請選擇「檔案」>「打開 Playground」,然後找到該 Playground。
按兩下 Playground。
Playground 會在新視窗中打開。
若您從「我的 Playground」畫面以外的某處打開 Playground(例如「檔案」App 或「iCloud 雲碟」),任何您進行的更動都會連同該 Playground 儲存在您將其打開的來源位置。
加入或刪除 Playground
在 Mac 上的 Swift Playgrounds App 中,前往「我的 Playground」畫面,然後執行下列任一操作:
加入 Playground:按一下底部「更多 Playgrounds」區域中的 Playground。
您也可以按一下靠近右下角的「檢視全部」,然後在「更多 Playgrounds」畫面上按一下 Playground 旁邊的「取得」。
刪除 Playground:按住 Control 並按一下 Playground,然後選擇「丟到垃圾桶」。
複製或重新命名 Playground
在 Mac 上的 Swift Playgrounds App 中,前往「我的 Playground」畫面,然後執行下列任一操作:
複製 Playground:按住 Control 並按一下 Playground,選擇「複製 Playground」,輸入拷貝的名稱,然後按一下「複製」。
重新命名 Playground:按住 Control 並按一下 Playground,選擇「重新命名 Playground」,然後輸入新的名稱。
搜尋或檢視更多 Playground
在 Mac 上 Swift Playgrounds App 的「我的 Playground」畫面中,執行下列任一操作:
搜尋 Playground:在右上角的過濾欄位中輸入 Playground 的部分或全名。
只有符合您搜尋文字的 Playground 會顯示。
檢視更多 Playground:按一下靠近右下角的「檢視全部」。
【注意】更新至新版本的 Swift Playgrounds 後,App 可能會嘗試更新現有的 Playground 來搭配新版本作業。若您的 Playground 可在舊版 Swift Playgrounds 中作業但無法用於新版,請嘗試關閉 Playground 和 App,然後重新開啟兩者。若此方式無效,請前往「更多 Playgrounds」畫面並下載 Playground 的新拷貝。