fix(bottom-sheet): avoid nil maxHeight crash when no window scene is found

Util.getScreenHeight() can return nil, which was stored in an implicitly unwrapped maxHeight during init and trapped in clampHeight. Fall back to the main screen bounds instead.


Author Rishi Balakrishnan Date Commit Parent bfa1e63e
+3 -3
1 changed file
+3 -3
1 changed file