【发布时间】:2020-02-03 22:50:32
【问题描述】:
在SwiftUI 中,您可以使用foregroundColor 修饰符更改图标的颜色:
Change the stroke/fill color of SF Symbol icon in SwiftUI?
有没有办法改变UIKit 的颜色?我查阅了文档,没有找到任何相关的内容。
let configuration = UIImage.SymbolConfiguration(pointSize: 16, weight: .regular, scale: .medium)
let iconImage = UIImage(systemName: "chevron.right", withConfiguration: configuration)
【问题讨论】:
-
2021 年的 iOS 15 在 SF Symbols 3 中有新的多色图标:stackoverflow.com/questions/69304679/…
标签: ios colors uikit sf-symbols