标记格式只适用于Swift游乐场吗?

问题描述 投票:1回答:1

在swift文件中,我没有看到编辑器_显示渲染的标记按钮。

例如。

//: - Experiment:
//: Modify the `anyCommonElements(_:_:)` function to make a function that returns an array of the elements that any two sequences have in common.
//:

如何在swift文件中以渲染标记模式显示?

swift swift-playground
1个回答
3
投票

标记格式仅适用于游乐场和快速帮助。换句话说,无法在Xcode项目的swift文件中呈现标记,但您可以使用它来改进“快速帮助”中显示的文档。有关详细信息,请参阅thisthis

© www.soinside.com 2019 - 2024. All rights reserved.