Skip to content

Color mismatch for Shape.fill effect #775

@Kyle-Ye

Description

@Kyle-Ye
Circle().fill(Color.red)
SUI:
(lldb) rr s0 s1 s2 s3
      s0 = 1
      s1 = 0.0437350273
      s2 = 0.0295568332
      s3 = 1

(lldb) po [0x101f119b0 subviews]
<__NSSingleObjectArrayI 0x600000024060>(
<_TtC7SwiftUIP33_A34643117F00277B93DEBAB70EC0697122_UIShapeHitTestingView: 0x103804280; frame = (151 401; 100 100); anchorPoint = (0, 0); autoresizesSubviews = NO; backgroundColor = UIExtendedSRGBColorSpace 1 0.231373 0.188235 1; layer = <CALayer: 0x6000002302c0>>
)

OSUI:
s0 = 1
s1 = 0.0437350273
s2 = 0.029556833
s3 = 1

(lldb) po [0x1068145a0 subviews]
<__NSSingleObjectArrayI 0x6000000049c0>(
<_TtC11OpenSwiftUIP33_F9F7EA2EE2BCE7A2DBC3CA259256A9AC22_UIShapeHitTestingView: 0x10550ac50; frame = (151 401; 100 100); anchorPoint = (0, 0); autoresizesSubviews = NO; layer = <_TtC7SwiftUIP33_E19F490D25D5E0EC8A24903AF958E34115PaintShapeLayer: 0x60000300c630>>
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions