gordontucker / FittedSheets

Bottom sheets for iOS
MIT License
1.35k stars 278 forks source link

inlineMode in modalView state #195

Open Alelenka opened 1 year ago

Alelenka commented 1 year ago

Issue

There is a need to use inlineMode with ViewCntroller sheet presented modaly, and not like a childViewController.

Result

So now inlineMode can be possible as in documentation

sheetController.animateIn(to: view, in: self)

And also we can use

self.present(sheet, animated: false, completion: nil)

Solution

all gestures would be sent to presentingViewController.view if it exists

Additional fix

If we use inlineMode with sheetController.animateIn inside TabBarController we would want to consider safeArea