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

Center Continue button instead of using left and right margins. #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Nov 29, 2017

The intention of the code seems to be to center the Continue button. This centers it without making it stretch to the edges. This way the button is the size of the text (as one might expect) and can be customized (custom background color, etc.) without having a very wide button.

If #20 gets merged, I'll update this to use margin.centerXAnchor instead of self.centerXAnchor.

@ghost
Copy link
Author

ghost commented Dec 8, 2017

Resolved the conflict and updated to use margin.centerXAnchor.

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

Successfully merging this pull request may close these issues.

1 participant