Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug causing app to crash #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kildos
Copy link

@kildos kildos commented Mar 25, 2020

Hi!

Using your FlippingLabel library I found a bug if the code requests a new label while the animation of the current label is still in progress (ex. a button updating the label every time it's pressed). The app would crash at line 225 while trying to unwrap newTextBottomView with a nil value. I added a couple of checks to ensure the needed views exist and to remove the old layers if a new label is requested and the current has not finished yet.

Feel free to share any comment :)

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

Successfully merging this pull request may close these issues.

1 participant