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

Brick height depending of the View height #208

Open
Stanou01260 opened this issue Jan 10, 2018 · 0 comments
Open

Brick height depending of the View height #208

Stanou01260 opened this issue Jan 10, 2018 · 0 comments

Comments

@Stanou01260
Copy link

I saw in the readme that there are 3 different ways to define height.

// Calculate height using auto-layout
LabelBrick(height: .auto(estimate: .fixed(size: 50)), text: "BRICK"),

// Fixed Height
LabelBrick(height: .fixed(size: 50), text: "BRICK"),

// Calculate height based on ratio of the width
LabelBrick(height: .ratio(ratio: 1), text: "BRICK")

However I did not see a way to set the height depending on the superView height (like there is for the width).
For instance, if I want to have cells being a third of the height, I do not know how to proceed : I can update the section in viewWillTransitionTo() but I would like not to use this ugly solution

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

1 participant