remove print statements

This commit is contained in:
Pfeil, Scott Robert 2020-09-15 12:20:41 -04:00
parent a971f3daa9
commit 83a5010f65

View File

@ -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)