如何在Swift中使用SF符号
要在Swift中使用SF Symbol,可以使用新的UIImage(systemName :)初始化程序:
let image = UIImage(systemName: "square.and.pencil")
下面是SF Symbols的官方下载资源
https://developer.apple.com/sf-symbols/

let image = UIImage(systemName: "square.and.pencil")
https://developer.apple.com/sf-symbols/
本文标题:Swiftui 使用系统图标 SF Symbols
本文链接:https://www.haomeiwen.com/subject/pxhnoltx.html
网友评论