Closed vykut closed 1 year ago
Ho @vykut. Thank you very mich. yes sorry. I haven't recently updated the route-composer as my current app still supports ios 14 😂. Nice job.
@ekazaev are you going to tag a new release or should we point to the master branch?
@vykut of course. Just I am not by the laptop atm.
@vykut New version was released
Hi,
Currently
ViewControllerActions.PresentModallyAction
allows only for configuring theUIPopoverPresentationController
instance. In our usecase, we need to configure theUISheetPresentationController
which is only available in iOS 15 or later. I have modified the existingViewControllerActions.PresentModallyAction
to allow for such configuration, by providing the genericUIPresentationController
in a config block, which can then be casted to eitherUISheetPresentationController
, orUIPopoverController
.Therefore, I generalized the API a bit, but have kept the existing functionality of configuring only the
UIPopoverPresentationController
so this change is not a breaking one for existing consumers.