diff --git a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserInteractor.swift b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserInteractor.swift index 5e92f00e2..337e07c3f 100644 --- a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserInteractor.swift +++ b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserInteractor.swift @@ -407,7 +407,7 @@ extension DAppBrowserInteractor: DAppBrowserInteractorInputProtocol { securedLayer.scheduleExecutionIfAuthorized { [weak self] in self?.logger?.debug("Did receive \(name) message from \(host): \(message)") - self?.verifyPhishing(for: host) { [weak self] isNotPhishing in + self?.verifyPhishing(for: host) { isNotPhishing in if isNotPhishing { let queueMessage = QueueMessage( host: host, diff --git a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserTabTransition.swift b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserTabTransition.swift index b94a9a4be..4170f72d7 100644 --- a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserTabTransition.swift +++ b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserTabTransition.swift @@ -11,7 +11,7 @@ enum DAppBrowserTabTransition { guard let tabId else { return } let options = UIViewController.Transition.ZoomOptions() - options.interactiveDismissShouldBegin = { context in + options.interactiveDismissShouldBegin = { [weak destController] context in guard let destinationController = destController as? DAppBrowserViewController else { return true } diff --git a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserViewController.swift b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserViewController.swift index 163570433..1807ce793 100644 --- a/novawallet/Modules/DApp/DAppBrowser/DAppBrowserViewController.swift +++ b/novawallet/Modules/DApp/DAppBrowser/DAppBrowserViewController.swift @@ -327,8 +327,8 @@ private extension DAppBrowserViewController { navigationController?.setNavigationBarHidden(false, animated: true) - slidingAnimator.animate(block: { - self.rootView.setIsToolbarHidden(false) + slidingAnimator.animate(block: { [weak self] in + self?.rootView.setIsToolbarHidden(false) }, completionBlock: nil) } @@ -341,8 +341,8 @@ private extension DAppBrowserViewController { navigationController?.setNavigationBarHidden(true, animated: true) - slidingAnimator.animate(block: { - self.rootView.setIsToolbarHidden(true) + slidingAnimator.animate(block: { [weak self] in + self?.rootView.setIsToolbarHidden(true) }, completionBlock: nil) } diff --git a/novawallet/Modules/DApp/DAppBrowser/Tabs/DAppBrowserTabManager/DAppBrowserTabManager.swift b/novawallet/Modules/DApp/DAppBrowser/Tabs/DAppBrowserTabManager/DAppBrowserTabManager.swift index b54e5ca11..b16e835f8 100644 --- a/novawallet/Modules/DApp/DAppBrowser/Tabs/DAppBrowserTabManager/DAppBrowserTabManager.swift +++ b/novawallet/Modules/DApp/DAppBrowser/Tabs/DAppBrowserTabManager/DAppBrowserTabManager.swift @@ -391,7 +391,7 @@ extension DAppBrowserTabManager: DAppBrowserTabManagerProtocol { } func removeAll(for metaIds: Set?) { - let wrapper = removeAllWrapper(for: metaIds) + let wrapper = removeAllWrapper(metaIds) execute( wrapper: wrapper,