Skip to content

CustomBadge crashes when used in FXBlurView #10

Description

@paul-piro

i get this error when used with FXBlurView in iOS 7

Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathAddArc(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat, bool), file Paths/CGPath.cc, line 279.

so i added the following condition in drawRoundedWithContext
if(rect.size.width > 0 && rect.size.height > 0) {
}

only then we allow the code to be executed else the app will crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions