I had to do a little research because the snippet generated by Figma was irrelevant.
Indeed, Figma uses notion of blur ans spread, which are not native for iOS.
I found some blog post about converting blur and spread from Sketch to iOS, and their method seems to work also for Figma.
I provided a quick README for shadows, and referenced this file in general README
Showcase
The Showcase has been updated, with an example of shadow dropped under a rounded rect label, with Background.accent color. But the shadow should be applicable to any UIView.
Remarks
The color of the shadow is the same for dark and light themes (could not find in Figma if I should use a specific color for dark theme), thus, the shadow is quite invisible in dark theme over a black background.
Changes description
Here is a proposal for shadow implementatiion.
I had to do a little research because the snippet generated by Figma was irrelevant. Indeed, Figma uses notion of blur ans spread, which are not native for iOS.
I found some blog post about converting blur and spread from Sketch to iOS, and their method seems to work also for Figma.
I provided a quick README for shadows, and referenced this file in general README
Showcase
The Showcase has been updated, with an example of shadow dropped under a rounded rect label, with Background.accent color. But the shadow should be applicable to any UIView.
Remarks
The color of the shadow is the same for dark and light themes (could not find in Figma if I should use a specific color for dark theme), thus, the shadow is quite invisible in dark theme over a black background.