Edit the background color to be transparent, load it into a bitmap in the program, and use CoreGraphics, shader and blending mode to draw a dark outline
Offset a few pixels and draw the original bitmap again
But this doesn’t make any sense in terms of engineering, it’s just “can do”
Does it have to be implemented in code? You can consider asking an artist to produce a picture
ios--UIImageView adds borders and shadows
http://www.aichengxu.com/view/32652
Add a layer to redraw the five-pointed star
Edit the background color to be transparent, load it into a bitmap in the program, and use CoreGraphics, shader and blending mode to draw a dark outline
Offset a few pixels and draw the original bitmap again
But this doesn’t make any sense in terms of engineering, it’s just “can do”