shaffex

Shape: Capsule

Description

A capsule shape aligned inside the frame of the view containing it.

Parameters

Example

<body>
    <vstack padding="">
        <capsule foregroundColor="blue"/>
        <capsule foregroundColor="red"/>
        <zstack>
            <capsule foregroundStyle="style:lineargradient;colors:[red,blue];startPoint:0.0,0.5;endPoint:1.0,0.5"/>
            <capsule stroke="lineWidth:10; dash:5" foregroundColor="yellow"/>
        </zstack>
    </vstack>
</body>

Screenshot