Coder Social home page Coder Social logo

Comments (3)

alexisakers avatar alexisakers commented on May 25, 2024

That's actually the intended behavior. The item should not be dismissed if there's a task in progress.

I fixed the bug that allowed the card to be dismissed if you swiped from the borders, but I can't think of a use case where it's useful to be able to swipe off a card when a task is in progress. Could you tell me why you'd want to do this?

from bulletinboard.

LowKostKustomz avatar LowKostKustomz commented on May 25, 2024

In my app I've Two-Factor Authentication and to enable it I want to make some requests. But during that requests user can change mind and swipe off Bulletin if he doesn't want TFA anymore . This behavior needed to not force user to wait until requests are completed.

Another example: I want to programmatically dismiss Bulletin just after a request completion and not to show success item (success will be shown with another UI elements).

And another one, not about dismissing, but maybe even more important than others: in the version I was fixing there was an issue than even if Bulletin cannot be dismissed and loading indicator is showing, you can swipe item, but loading indicator won't follow item, it will stay on the same place, which IMHO is not the best behavior.

So I think that at least last example gives the reason to fix the issue.

UPDATE:

I just get that you made card non-interacting while activity indicator is shown.

Then the last example is not needed, but as for me it would be better to give ability to programmer to decide wether the card can be dismissed or interacted while isUserInteractionEnabled property, for example.

In iOS you can swipe/move/stretch anything that allows user-interacting and that is iOS distinctive feature. I think we should maintain this in our frameworks.

from bulletinboard.

alexisakers avatar alexisakers commented on May 25, 2024

You're right, it's definitely better to allow the programmer to decide the user experience for their apps. Fixing this before the next version ships.

from bulletinboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.