Skip to content

Context needs to be cleared when drawing - Swift #13

@asmusto

Description

@asmusto

Hi, thanks for this source code. But I had an issue when using this in swift and the dots are using images.
After debugging it, I found that it needs to clear the context before drawing (in line 121). (It doesn't matter whether I checked clear graphics context in interface builder or not).

    CGContextClearRect(context, rect);

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