Skip to content

Commit

Permalink
[fix/memoryleaks] Fix memory leaks / retain cycles (#162)
Browse files Browse the repository at this point in the history
* - Fix memory leaks
- Updated SDK

* - Fix retain cycles in Settings view controllers

* - Refinements

* - Fix variable naming

* - Update SDK

* - Update PocketSVG reference
  • Loading branch information
felix-schwarz authored and jesmrec committed Nov 23, 2018
1 parent 4d81357 commit 9589c5c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
import UIKit

final class CardTransitionDelegate: NSObject, UIViewControllerTransitioningDelegate {
private weak var vcToPresent: UIViewController?
private weak var alreadyPresentedVC: UIViewController?
private weak var viewControllerToPresent: UIViewController?

init(viewControllerToPresent: UIViewController, presentingViewController: UIViewController) {
self.vcToPresent = viewControllerToPresent
self.alreadyPresentedVC = presentingViewController
self.viewControllerToPresent = viewControllerToPresent
}

func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {
Expand Down

0 comments on commit 9589c5c

Please sign in to comment.