Skip to content

Unable to swipe/drag between values with new iOS modal presentation style #148

@benpackard

Description

@benpackard

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:

  1. Add a CosmosView to a view controller and present it modally on iOS 13.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions