Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing out of bounds #1

Open
hernangonzalez opened this issue Apr 12, 2018 · 1 comment
Open

Drawing out of bounds #1

hernangonzalez opened this issue Apr 12, 2018 · 1 comment

Comments

@hernangonzalez
Copy link

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.

@muh-umair
Copy link

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 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants