Skip to content

If total is zero application crashes with CALayerInvalidGeometry #3

@Nikita2k

Description

@Nikita2k

If total value is zero (in case there is not data yet) app crashes with message

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

Possible solution: ask delegate for UIView to show instead of Pie Chart or do something to prevent from dividing on zero

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