is there a way to use SF Symbols (i.e. Apple share icons library) on Codea ?
Sharing your practice is welcome
Cheers
The following works but there are issues with the colors (mine end up showing green). Since we automatically convert from UIImage to Codea Image type, this might prevent setting the right parameters such as tintColor on the UIImage itself. I’ll open a bug so we can investigate this.
function setup()
img = objc.UIImage:systemImageNamed_("globe")
viewer.mode = FULLSCREEN
end
function draw()
background(40, 40, 50)
sprite(img, WIDTH/2, HEIGHT/2)
end
1 Like
I’ve opened this bug: Cannot change color of SF Symbols · Issue #340 · twolivesleft/codea-feedback · GitHub
So simple while reading, and at the same time, when you don’t know it … !
Thank you very much for your time and for sharing.
Agree, tint() doesn’t have the expected and documented behavior. noTint() either (the sprite remains black). Documentation says that color define in tint() is mutilplied by default color of the sprite (which seems to by black, = 0 ?)