Skip to content

Memory Leak issue #164

Open
Open
@asifbilal786

Description

@asifbilal786

Hi

First thanks for the great library. It's really useful.

But I am facing the memory leaks when using this library. I have debug into the code and came to know that this code is causing memory leak.

self.propertyAnimator = [[UIViewPropertyAnimator alloc] initWithDuration:1.0 curve:UIViewAnimationCurveLinear animations:^{ self.blurBackgroundView.effect = nil; }];

To resolve it I have changed it to weak self as instructed by Apple to avoid any memory issue.

__weak MZFormSheetPresentationController *weakSelf = self; self.propertyAnimator = [[UIViewPropertyAnimator alloc] initWithDuration:1.0 curve:UIViewAnimationCurveLinear animations:^{ weakSelf.blurBackgroundView.effect = nil; }];

Please update the pod with resolution of this issue.
Thanks!!!

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