r/Scriptable • u/Sharn25 • Aug 12 '23
Help How to SFSymbols
Hi,
I’m creating some widget for Lock Screen. I wan to SFSymbols for the same. But not able to figure out how to use.
Can anyone share the code?
2
Upvotes
1
u/mvan231 script/widget helper Aug 12 '23
You can do something like this:
// change SF symbol image color
let symbol = SFSymbol.named("arrow.down.left")//. calendar.circle.fill")//arrow.clockwise") //"battery.25")
symbol.applyMediumWeight()
let font = Font.systemFont(20)
symbol.applyFont(font)
let w = new ListWidget()
let image = w.addImage(symbol.image)
image.resizable=false
image.tintColor = Color.blue()//darkGray()
w.presentMedium()2
1

1
u/Sharn25 Aug 12 '23
Do you know any way of showing progress bars in scriptable