Skip to content

Create Layers on demand to handle transparent PNGs #12

@florianpilz

Description

@florianpilz

Hi, we're using iOS-Flip-Transform for a digital clock. Your framework is great, but it has one major drawback: Transparency. We used transparent pictures for each digit with a rounded corner (using transparency). Due to the transparency, all layers of the FlipView are rendered (since all are visible through the transparent corners - even though there is just another transparent corner beneath), i.e. 410 layers in our case. As you can imagine, drawing the clock the first time is slow and visible to the user.

Our solution will be to use non-transparent pictures and give up on rounded corners. The proper solution, which is currently not supported by the framework, would be to create the layers on demand, i.e. only create & draw the frontmost digit with its 10 layers and don't rely on the visible surface determination of Core Animation to prevent drawing of layers beneath the frontmost one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions