review updates
This commit is contained in:
parent
83a5010f65
commit
80d15f84da
@ -23,8 +23,8 @@ public extension MVMCoreUITopAlertView {
|
|||||||
|
|
||||||
/// Checks for new top alert json
|
/// Checks for new top alert json
|
||||||
@objc func responseJSONUpdated(notification: Notification) {
|
@objc func responseJSONUpdated(notification: Notification) {
|
||||||
let responseJSON = (notification.userInfo?[String(describing: MVMCoreLoadObject.self)] as? MVMCoreLoadObject)?.responseJSON
|
guard let responseJSON = (notification.userInfo?[String(describing: MVMCoreLoadObject.self)] as? MVMCoreLoadObject)?.responseJSON,
|
||||||
guard let json = responseJSON?.optionalDictionaryForKey("TopNotification") else { return }
|
let json = responseJSON.optionalDictionaryForKey("TopNotification") else { return }
|
||||||
|
|
||||||
// TODO: Top alert view is current delegate. Should move to current view controller eventually?
|
// TODO: Top alert view is current delegate. Should move to current view controller eventually?
|
||||||
let delegateObject = MVMCoreUIDelegateObject.create(withDelegateForAll: self)
|
let delegateObject = MVMCoreUIDelegateObject.create(withDelegateForAll: self)
|
||||||
@ -65,10 +65,10 @@ public extension MVMCoreUITopAlertView {
|
|||||||
let view = molecule as? MVMCoreUITopAlertBaseView else {
|
let view = molecule as? MVMCoreUITopAlertBaseView else {
|
||||||
throw ModelRegistry.Error.decoderOther(message: "Molecule not a top alert")
|
throw ModelRegistry.Error.decoderOther(message: "Molecule not a top alert")
|
||||||
}
|
}
|
||||||
if let casteView = view as? StatusBarUI {
|
if let castView = view as? StatusBarUI {
|
||||||
let statusBarUI = casteView.getStatusBarUI()
|
let (color, style) = castView.getStatusBarUI()
|
||||||
statusBarColor?.pointee = statusBarUI.color
|
statusBarColor?.pointee = color
|
||||||
statusBarStyle?.pointee = statusBarUI.style
|
statusBarStyle?.pointee = style
|
||||||
}
|
}
|
||||||
return view
|
return view
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user