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

Make coerceEachDimensionAtLeast() public API #240

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Conversation

chrisbanes
Copy link
Contributor

Fixes #239

@google-cla google-cla bot added the cla: yes label Mar 14, 2021
Copy link
Collaborator

@nickbutcher nickbutcher left a comment

Choose a reason for hiding this comment

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

Worth a FR on the library?

* dimension value in [minimumValue], otherwise a copy of this with each dimension coerced with the
* corresponding dimension value in [minimumValue].
*/
fun Insets.coerceEachDimensionAtLeast(minimumValue: Insets): Insets {
Copy link
Collaborator

Choose a reason for hiding this comment

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

coerce "each" or "all"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was 50/50 on this tbh, but leaned towards 'each' to indicate that each dimension is coerced seperately.

@chrisbanes chrisbanes merged commit c93c99e into main Mar 15, 2021
@chrisbanes chrisbanes deleted the cb/inset-api-public branch March 15, 2021 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Insets] Missing WindowInsets.navigationBarsWithIme
2 participants