首页 > 解决方案 > iOS 15 Swift AttributedString 降价代码块

问题描述

iOS 15 具有新的 AttributedString API:

https://developer.apple.com/documentation/foundation/attributedstring

它似乎不支持带有降价的代码块。有谁知道如何使用它显示代码块?

我一直在使用 cocoapod (MarkdownKit),但它并不擅长。

希望有类似堆栈溢出代码块的东西:

```
Here's a code block
```

标签: swiftmarkdownuilabeluitextviewios15

解决方案


推荐阅读