Skip to content

Instantly share code, notes, and snippets.

@ahmed-abdurrahman
Created November 7, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmed-abdurrahman/2585fcbc64ec36268412 to your computer and use it in GitHub Desktop.
Save ahmed-abdurrahman/2585fcbc64ec36268412 to your computer and use it in GitHub Desktop.
Avoiding memory cycle
pushBehavior.action = { [unowned pushBehavior] in
pushBehavior.dynamicAnimator!.removeBehavior(pushBehavior)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment