swift - iOS 15 Swift AttributedString 降价代码块
问题描述
iOS 15 具有新的 AttributedString API:
https://developer.apple.com/documentation/foundation/attributedstring
它似乎不支持带有降价的代码块。有谁知道如何使用它显示代码块?
我一直在使用 cocoapod (MarkdownKit),但它并不擅长。
希望有类似堆栈溢出代码块的东西:
```
Here's a code block
```
解决方案
推荐阅读
- javascript - Gun 如何在有时断开的 P2P 网络中管理用户
- javascript - 如何从给定日期获取前一周的特定日期?
- python - 具有任意顶点数的图中的循环检测
- r - 通过两个数据帧的两个条件创建虚拟对象
- android - 从动态创建的列表颤动中动态删除小部件
- r - 使用 tmap 包映射欧洲
- python - 搜索元组列表以查找匹配子字符串的算法方法?
- react-native - react-navigation 5 一次导航多条路线
- python - 了解 flask_sqlalchemy 模型
- angular - 由于 Hammer.JS 未加载,无法绑定“swiperight”事件