Skip to content

ios: The UIAlertController behavior dismisses the modal by dragging #49

@davecoffin

Description

@davecoffin

When you pull down on the spinner to select a date or time and your selection reaches the center when your finger is over the OK or Cancel button, the action is triggered.

Here is a video of the behavior: https://share.getcloudapp.com/6qu0Av6N

The nature of these spinners is you can drag them anywhere on the screen to reach your desired selection without triggering other UI actions. UIAlertController probably isnt a suitable view container for the spinner, as it appears you cannot disable the fact that dragging your finger over the button and releasing will trigger the action regardless of the state of the UI within the alert view.

One potential solution is to not add the UIAlertAction buttons (which trigger this unwanted behavior), but to instead add UIButtons to the messageLabelContainer. You probably couldn't achieve the same native Action Sheet UI look, but the look is far less important that a usable UI in my opinion.

@tgpetrov is unable to commit to fixing this issue, @tjvantoll could you triage? I'd do it myself but my native iOS chops are lacking, I spent a bunch of time on it and managed this haha: https://share.getcloudapp.com/X6uYjLwO

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions