ISPageControl icon indicating copy to clipboard operation
ISPageControl copied to clipboard

Drawing out of bounds

Open hernangonzalez opened this issue 7 years ago • 1 comments

Hi,

Tried to set a background color to the component, yet it shows up off the edges. Realised then that if I set the page control to clip its content, a part is missing. Which means the component is drawing itself out of the bounding area.

Just set a background color and you will see what I mean.

Thanks, H.

hernangonzalez avatar Apr 12 '18 12:04 hernangonzalez

I faced the same issue and solved it by adding a delay in setting number of pages like this.
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()) { self.pageControl?.numberOfPages = self.moods.count }

muh-umair avatar Oct 10 '18 09:10 muh-umair