我正在尝试获取 SF Symbol 的系统名称。这是我的形象:
let image = UIImage(systemName: "checkmark.circle.fill")
以后如何获取该映像的系统名称?
我还发现,当我打印图像的描述时,它会打印符号名称以及其他数据。有没有办法从那里提取名字?
<UIImage:0x600001d50900 symbol(system: checkmark.circle.fill) {20, 19} baseline=3.5,contentInsets={1, 1.5, 1, 1.5},alignmentRectInsets={-0.5, 0, -0.5, 0} config=<(null), traits=(UserInterfaceIdiom = Pad, DisplayScale = 2, DisplayGamut = P3, HorizontalSizeClass = Regular, VerticalSizeClass = Regular, UserInterfaceStyle = Light, UserInterfaceLayoutDirection = LTR, PreferredContentSizeCategory = L, AccessibilityContrast = Normal)>>