From 30ff7007865d6d06412926b72076d28f4e07291f Mon Sep 17 00:00:00 2001 From: Le0nX Date: Fri, 14 Feb 2020 11:32:38 +0300 Subject: [PATCH] RETAIN CYCLE --- WeakReference/WeakReference.xcodeproj/project.pbxproj | 2 +- WeakReference/WeakReference/{Resources => }/SceneDelegate.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename WeakReference/WeakReference/{Resources => }/SceneDelegate.swift (96%) diff --git a/WeakReference/WeakReference.xcodeproj/project.pbxproj b/WeakReference/WeakReference.xcodeproj/project.pbxproj index 5265b3c..9c4f09e 100644 --- a/WeakReference/WeakReference.xcodeproj/project.pbxproj +++ b/WeakReference/WeakReference.xcodeproj/project.pbxproj @@ -60,6 +60,7 @@ 148DABF423F678DB00B3BB98 /* WeakReference */ = { isa = PBXGroup; children = ( + 148DABF723F678DB00B3BB98 /* SceneDelegate.swift */, 148DAC0C23F6831F00B3BB98 /* Business */, 148DAC0B23F6831300B3BB98 /* Presentation */, 148DAC0A23F682C800B3BB98 /* Resources */, @@ -83,7 +84,6 @@ children = ( 148DABF523F678DB00B3BB98 /* AppDelegate.swift */, 148DAC0023F678E000B3BB98 /* LaunchScreen.storyboard */, - 148DABF723F678DB00B3BB98 /* SceneDelegate.swift */, 148DABFE23F678E000B3BB98 /* Assets.xcassets */, ); path = Resources; diff --git a/WeakReference/WeakReference/Resources/SceneDelegate.swift b/WeakReference/WeakReference/SceneDelegate.swift similarity index 96% rename from WeakReference/WeakReference/Resources/SceneDelegate.swift rename to WeakReference/WeakReference/SceneDelegate.swift index f1dec8f..43bd5d2 100644 --- a/WeakReference/WeakReference/Resources/SceneDelegate.swift +++ b/WeakReference/WeakReference/SceneDelegate.swift @@ -22,7 +22,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { if let windowScene = scene as? UIWindowScene { if let vc = window?.rootViewController as? CurrencyViewController { - let presenter = CurrencyPresenter(output: vc) + let presenter = CurrencyPresenter(output: vc) // Утечка памяти let currencyUpdater = CurrencyUpdater(output: presenter) vc.updateCurrency = currencyUpdater.update }