Highlights
This release focuses on Android improvements with smoother animations, better keyboard handling, and significant code refactoring for maintainability.
Features
- Improved transition animations - Present and dismiss animations are now programmatic with synchronized dim view alpha transitions (#337)
- Better keyboard handling - Sheet expands to last detent when keyboard shows and restores original position when keyboard hides (#337)
- Smart keyboard dismissal - Keyboard automatically dismisses when dragging the sheet down below the original detent position (#337)
Bug Fixes
- fix(android): Use window visibility to prevent keyboard non-focus issues
- fix(android): Use target keyboard height for accurate detent calculations
- fix(android): Improve keyboard handling and detent restoration
- fix(android): Animate dim view alpha when restoring from modal
- fix(android): Coordinate sheet stack restoration when modal dismisses
Internal
- Extracted
TrueSheetDetentCalculatoron both iOS and Android for cleaner detent calculation logic (#337) - Extracted
TrueSheetAnimatoron Android for present/dismiss animations (#337) - Reorganized
TrueSheetViewControllerwith consolidated state management usingInteractionStatesealed class - Removed unused animation resources and styles
Full Changelog: v3.4.2...v3.5.0