无法从游乐场页面隐藏代码

时间:2020-10-14 02:42:20

标签: swift xcode swift-playground

我尝试按照Apple的文档https://developer.apple.com/documentation/swift_playgrounds/hiding_code_from_a_playground_page

从Playground页面隐藏代码

但是,在呈现文档/操场页面时,以下内容似乎无效。我在这里想念东西吗?

//#-hidden-code
import Foundation
import PlaygroundSupport
//#-end-hidden-code

经过测试:

  • Xcode 12.0
  • Xcode 11.5

0 个答案:

没有答案