iOS 13 introduced a new default modal presentation style that allows the user to dismiss with a downwards gesture. Unfortunately this interferes with dragging from one star rating to another in Cosmos.
To reproduce:
- Add a
CosmosView to a view controller and present it modally on iOS 13.
- Attempt to drag your finger from one star to the next
Expected: the star rating changes as the user drags her finger
Actual: the star rating does not change
A few observations:
- I am using the latest version of Cosmos and iOS 13.1.1
- The
CosmosView works as expected if the view controller's modalPresentationStyle is changed to .fullScreen
- On close inspection, a drag gesture does allow for value changes of half-step increments, but as soon as the gesture leaves one star for the next star, the gesture is dropped.
- Setting the parent scroll view's
canCancelContentTouches to false does not seem to help.
- Setting
passTouchesToSuperview to false does not help.
iOS 13 introduced a new default modal presentation style that allows the user to dismiss with a downwards gesture. Unfortunately this interferes with dragging from one star rating to another in Cosmos.
To reproduce:
CosmosViewto a view controller and present it modally on iOS 13.Expected: the star rating changes as the user drags her finger
Actual: the star rating does not change
A few observations:
CosmosViewworks as expected if the view controller'smodalPresentationStyleis changed to.fullScreencanCancelContentTouchestofalsedoes not seem to help.passTouchesToSuperviewtofalsedoes not help.