Skip to content

RadialGradient. Stop Offset > 1 (IOS) #303

@MarkThielen

Description

@MarkThielen

Hi there,

First of all, great work ! Love Macaw ;)

I understand that you are not supposed to pass Stop Offsets > 1.0 but if you do it makes the app crash hard.

Example:
let green_radial_gradient_fill = RadialGradient( stops: [ Stop(offset:0, color: Color(val: 0x39b54a)), Stop(offset:0.45, color: Color(val: 0x39b54a)),Stop(**offset:1.1**, color: Color(val: 0x000000))])

Not sure what the best way would be to handle this, but it would be helpful to see a warning in logs or something rather than a hard exit.

Cheers,
Mark

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions