Feature Request - Conditionally change Snap point for sheet

Hey there!

I honestly built out my app thinking this might already be a feature but isn’t. Sheets can only move snap points through user intervention, but sometimes it is required for the sheet to change snap point when an action is complete. For example, I have an app where a sheet overlays my map area - similar setup to uber. When I go to click the search button, I want the sheet to expand to the other snap to lock position I have set. Simply, all there needs to be is a conditional statement for the sheet - When custom state is set to X, make current snap point Y.

If anyone has another way of doing this please let me know :slight_smile:

I would set the sheet height to fit to content. Add empty groups of the height that you need in the various cases.

Show and hide this or these groups so that the height of the sheet is the one you need and in your specific case.

I learned how to make what’s there work with alternative methods :slight_smile:

I hope this helps!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.