Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

How can I detect when a card is being flipped? #17

Open
Sweeper777 opened this issue Jun 16, 2019 · 0 comments
Open

How can I detect when a card is being flipped? #17

Sweeper777 opened this issue Jun 16, 2019 · 0 comments

Comments

@Sweeper777
Copy link

I am writing an app where the user can write notes on the back of the cards. I am using a database to store the notes, so I need to update the values in the database when the card gets flipped back (i.e. the user ends editing).

I tried to look for a delegate method called willFlipCard or something like that, but realised that there is no such method. I tried doing the update in willUnrevealCard but apparently by the time that is called, it is too late. The text view instance is already gone.

How can I do something just before the card gets flipped back?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant