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

Added constant leading/header and trailing/footer padding space? #37

Closed
komocode opened this issue Aug 12, 2015 · 5 comments
Closed

Added constant leading/header and trailing/footer padding space? #37

komocode opened this issue Aug 12, 2015 · 5 comments

Comments

@komocode
Copy link

I would like some padding at the top of the OAStackView before the first view is laid out and space after the last view is laid out. Is it possible to add IBInspectables for them?

@harlanhaskins
Copy link
Contributor

You can use layoutMarginsRelativeAlignment. Just set stackView.layoutMarginsRelativeAlignment to true and set stackView.layoutMargins to UIEdgeInsets(top: <value>, left: 0, bottom: <value>, right: 0)

@christophercotton
Copy link

@harlanhaskins Except layoutMargins is iOS8 only.

@harlanhaskins
Copy link
Contributor

Not with OAStackView. OAStackView adds the property for iOS 7 compatibility.

@christophercotton
Copy link

@harlanhaskins Ah nice! It isn't in the released version of the pod I've been using, but I see the commits. Thanks.

@delebedev
Copy link
Collaborator

@christophercotton try out 0.2.0 tag (still no new cocoapod version though)

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

4 participants