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

Replace assertions in slice method with alert func #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NickEntin
Copy link
Collaborator

@NickEntin NickEntin commented Aug 30, 2024

There are some valid use cases where you want to be able to slice more than the available width/height, such as when your content has a minimum size and your sizing rules allow for content to extend beyond the bounds if you view is sized beneath its ideal size. This replaces the assertions in the slice(...) method with alert functions consumers can place breakpoints for, following the pattern we use for view alignment issues.

Resolves #128

@NickEntin NickEntin requested review from dfed and pwesten August 30, 2024 00:55
@NickEntin NickEntin force-pushed the nick/slice-no-assert branch from ac373ea to 2efcd4c Compare August 30, 2024 01:01
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.

Remove assertions in slicing method
2 participants