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

Shifting pageControl #9

Open
agfa555 opened this issue Mar 16, 2016 · 6 comments
Open

Shifting pageControl #9

agfa555 opened this issue Mar 16, 2016 · 6 comments

Comments

@agfa555
Copy link

agfa555 commented Mar 16, 2016

Hi,

Me again. I was also trying to use the innerMargin property to move the pageControl in the x-axis but it doesn't seem to work. The CGSizeMake() values that I use work for the y-axis but not the x-axis. Is that possible?

Thank you!

@evgenyneu
Copy link
Owner

Hi,

I think you are referring to settings.pageControl.innerPadding property. This property sets the padding for the page control that is the distance between the dots and the page control background. It does not change the position of the page control in the scroll view.

Here is how it is used:

scrollView.auk.settings.pageControl.innerPadding = CGSize(width: 5, height: 20)

page_control_inner_padding

Page control is positioned in the scroll view the following way:

a) It is centred horizontally.
b) It is aligned to the bottom edge of the scroll view.

At the moment the only available option for changing the position of page control is to change the margin between the bottom edge of the scroll view and the bottom of the page control. For example:

scrollView.auk.settings.pageControl.marginToScrollViewBottom = 8

I hope my explanation made it less confusing.

@agfa555
Copy link
Author

agfa555 commented Mar 17, 2016

Ok, thanks for the explanation! I was just hoping to move them to the left corner.

@RanjitKadam
Copy link

@evgenyneu and @agfa555 how we can move it to left or right corner.

@evgenyneu
Copy link
Owner

Hi @RanjitKadam, there is no way to move it to left or right in the current version of the library. You can, of course, fork the code and position the page control as you like with an auto layout constraint.

@NirajCapermint
Copy link

Can we shift page control to left or right?

@evgenyneu
Copy link
Owner

@NirajCapermint no, unfortunately not, at the moment.

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

No branches or pull requests

4 participants