Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

[question] How to move avatar vertically? #174

Closed
dannogo opened this issue Nov 15, 2017 · 3 comments
Closed

[question] How to move avatar vertically? #174

dannogo opened this issue Nov 15, 2017 · 3 comments

Comments

@dannogo
Copy link

dannogo commented Nov 15, 2017

Now I have this:

screen shot 2017-11-15 at 12 20 30 pm

I used code from issue #115 to place avatar on top:

layoutSpecs = ASStackLayoutSpec(direction: .horizontal, spacing: 0, justifyContent: justifyLocation, alignItems: .start, children: cellOrientation)

I need avatars to be near the arrows. So I need to adjust avatar's vertical position.
How to do it?

@dannogo
Copy link
Author

dannogo commented Nov 15, 2017

@dodikk Maybe you found out it already?

@dannogo
Copy link
Author

dannogo commented Nov 15, 2017

/** Spacing around the avatar. Defaults to UIEdgeInsetsMake(0, 0, 0, 10) */ open var avatarInsets: UIEdgeInsets = UIEdgeInsetsMake(20, 0, 0, 10) { didSet { self.setNeedsLayout() } }

@dodikk
Copy link

dodikk commented Nov 15, 2017

@dannogo , I used the insets property. I think you've found a correct one. Please close the issue if it helped you to achieve the expected render.

@dannogo dannogo closed this as completed Nov 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants