nicklockwood / FXPageControl

Simple, drop-in replacement for the iPhone UIPageControl that allows customisation of the dot colour, size and spacing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Context needs to be cleared when drawing - Swift

asmusto opened this issue · comments

commented

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);