juanpablofernandez / SwiftyOnboard

A swifty iOS framework that allows developers to create beautiful onboarding experiences.
MIT License
1.25k stars 105 forks source link

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

Open mpatzer opened 6 years ago

mpatzer commented 6 years ago

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.

mpatzer commented 6 years ago

Resolved the conflict and updated to use margin.centerXAnchor.