From 83a5010f65a0afcdadce8ce268a7718c322f6dfd Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Tue, 15 Sep 2020 12:20:41 -0400 Subject: [PATCH] remove print statements --- .../MVMCoreUITopAlertView+Extension.swift | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/MVMCoreUI/TopAlert/MVMCoreUITopAlertView+Extension.swift b/MVMCoreUI/TopAlert/MVMCoreUITopAlertView+Extension.swift index d14d100f..027875e7 100644 --- a/MVMCoreUI/TopAlert/MVMCoreUITopAlertView+Extension.swift +++ b/MVMCoreUI/TopAlert/MVMCoreUITopAlertView+Extension.swift @@ -23,21 +23,8 @@ public extension MVMCoreUITopAlertView { /// Checks for new top alert json @objc func responseJSONUpdated(notification: Notification) { - var jssoonnn = (notification.userInfo?[String(describing: MVMCoreLoadObject.self)] as? MVMCoreLoadObject)?.responseJSON - /*let molecule = CollapsableNotificationModel(with: LabelModel(text: "Top"), headline: LabelModel(text: "Headline")) - //let molecule = NotificationModel(with: LabelModel(text: "Hello")) - molecule.backgroundColor = Color(uiColor: .mvmRed) - molecule.button = ButtonModel(with: "Hi", action: ActionCancelModel()) - molecule.body = LabelModel(text: "Sup") - molecule.closeButton = NotificationXButtonModel() - let model = TopNotificationModel(with: "Testing", molecule: molecule) - model.persistent = false - model.dismissTime = 10 - model.setPriority(with: 80) - model.pages = nil//["settingsLanding"] - jssoonnn?.updateValue(model.toJSON()!, forKey: "TopNotification")*/ - guard let json = jssoonnn?.optionalDictionaryForKey("TopNotification") else { return } - print("TYTYT top alert new json \(json)") + let responseJSON = (notification.userInfo?[String(describing: MVMCoreLoadObject.self)] as? MVMCoreLoadObject)?.responseJSON + guard let json = responseJSON?.optionalDictionaryForKey("TopNotification") else { return } // TODO: Top alert view is current delegate. Should move to current view controller eventually? let delegateObject = MVMCoreUIDelegateObject.create(withDelegateForAll: self)