nicklockwood / FXPageControl

Simple, drop-in replacement for the iPhone UIPageControl that allows customisation of the dot colour, size and spacing.
Other
298 stars 69 forks source link

Context needs to be cleared when drawing - Swift #13

Open asmusto opened 9 years ago

asmusto commented 9 years ago

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