Skip to content


Presenting several toasts quickly causes animation to stop #33

BrettThePark opened this Issue · 2 comments

3 participants


Having several toast pop-up at the same time causes the following error in the console Multiple gravity behavior per animator is undefined and may assert in the future and causes the toast to not perform the out animation.

Here is the current setup:

    NSDictionary *options = @{
                              kCRToastTextKey : @"You now have 5 credits",
                              kCRToastTextAlignmentKey : @(NSTextAlignmentCenter),
                              kCRToastTextColorKey : [UIColor redColor],
                              kCRToastBackgroundColorKey : [UIColor blackColor],
                              kCRToastAnimationInTypeKey : @(CRToastAnimationTypeGravity),
                              kCRToastAnimationOutTypeKey : @(CRToastAnimationTypeGravity),
                              kCRToastAnimationInDirectionKey : @(CRToastAnimationDirectionLeft),
                              kCRToastAnimationOutDirectionKey : @(CRToastAnimationDirectionRight),
                              kCRToastNotificationTypeKey : @(CRToastTypeNavigationBar),
                              kCRToastNotificationPresentationTypeKey : @(CRToastPresentationTypePush),
                              kCRToastTimeIntervalKey : @1,
                              kCRToastFontKey : [UIFont systemFontOfSize:24]
    [CRToastManager showNotificationWithOptions:options


Damn thanks for the report @BrettThePark will take a look

@vIiRuS vIiRuS referenced this issue

Fix for #33 #39

@Ashton-W Ashton-W added the bug label

Closing since #39 was merged

@Ashton-W Ashton-W closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.