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

Margin resize #95

Merged
merged 3 commits into from
Aug 13, 2020
Merged

Margin resize #95

merged 3 commits into from
Aug 13, 2020

Conversation

farhad01
Copy link
Contributor

We can define height by constant margin from top now.

@@ -14,6 +14,7 @@ public enum SheetSize: Equatable {
case fixed(CGFloat)
case fullscreen
case percent(Float)
case margin(CGFloat)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be .fullscreenWithTopMargin(CGFloat), to indicate what the base size is. .margin(CGFloat) doesn't clearly indicate what it will be a margin on.

Copy link
Owner

@gordontucker gordontucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea here, just would like the name of the enum value changed

@farhad01
Copy link
Contributor Author

farhad01 commented Aug 13, 2020 via email

@gordontucker
Copy link
Owner

It isn't a fixed size, so that wouldn't work. How about just .marginFromTop? I think that resolves my concerns.

@farhad01
Copy link
Contributor Author

It isn't a fixed size, so that wouldn't work. How about just .marginFromTop? I think that resolves my concerns.

done

@gordontucker gordontucker merged commit 394e043 into gordontucker:master Aug 13, 2020
@farhad01 farhad01 deleted the margin_resize branch August 13, 2020 19:17
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.

2 participants