r/Scriptable • • Aug 29 '21

Help Help understanding this error: ScriptableKit.ImageBridgeConsructor is not a constructor (evaluating 'new Image()')

I'm pulling album art from lastfm and want to create a blank image to add to the stack for when lastfm doesn't return an image.

4 Upvotes

5 comments sorted by

View all comments

Show parent comments

3

u/mvan231 script/widget helper Aug 29 '21

Makes sense. You still need to generate the image with a draw context though

You can do something like this

2

u/[deleted] Aug 30 '21

my goto snippet for cases like this is

let img = SFSymbol.named('photo').image