Gradient blending is not working well with transparent background

Open
#281 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ios, swift

Research direction

Start by reproducing the attached loading_animation.riv.zip on the iOS client using the listed iPhone 11 Pro and iOS 17.0.3 environment, then trace the gradient rendering path. Done means radial gradients with multiple zero-alpha stops render transparent areas correctly instead of black and match the web editor result.

Written by the indexing model from the issue text.

Description

Description

We tried creating a glow effect using Rive. In web editor it looks fine, but on the iOS client it renders black color in places where shape should have clear color.

Steps to reproduce
  1. Create circle shape
  2. Set radial gradient as fill color
  3. Set multiple zero alpha steps in gradient to create a glowing border
Source

loading_animation.riv.zip

Screenshots

Editor:

img_v2_abebe806-4c9d-4933-b872-da53600a595h

Device:
image

Device & Versions
  • Device: iPhone 11 Pro
  • iOS 17.0.3
Dominant language
Swift
Stars
822
Forks
104
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rive-app/rive-ios

All issues in rive-app/rive-ios

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.