hot fix
This commit is contained in:
parent
48a8f4aba8
commit
8209101b73
@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// StackItem.swift
|
// MoleculeStackItem.swift
|
||||||
// MVMCoreUI
|
// MVMCoreUI
|
||||||
//
|
//
|
||||||
// Created by Scott Pfeil on 12/13/19.
|
// Created by Scott Pfeil on 12/13/19.
|
||||||
|
|||||||
@ -26,7 +26,7 @@ open class MoleculeStackView: Stack<MoleculeStackModel> {
|
|||||||
override func createStackItemsFromModel(with delegate: MVMCoreUIDelegateObject?) {
|
override func createStackItemsFromModel(with delegate: MVMCoreUIDelegateObject?) {
|
||||||
guard let stackItemModels = stackModel?.molecules else { return }
|
guard let stackItemModels = stackModel?.molecules else { return }
|
||||||
for model in stackItemModels {
|
for model in stackItemModels {
|
||||||
if let stackItem = MVMCoreUIMoleculeMappingObject.shared()?.createMolecule(model, delegate) as? StackItem {
|
if let stackItem = MVMCoreUIMoleculeMappingObject.shared()?.createMolecule(model, delegate) as? MoleculeStackItem {
|
||||||
stackItems.append(stackItem)
|
stackItems.append(stackItem)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,5 +19,6 @@ import UIKit
|
|||||||
viewControllerMapping = MVMCoreUIViewControllerMappingObject()
|
viewControllerMapping = MVMCoreUIViewControllerMappingObject()
|
||||||
loggingDelegate = MVMCoreUILoggingHandler()
|
loggingDelegate = MVMCoreUILoggingHandler()
|
||||||
moleculeMap = MVMCoreUIMoleculeMappingObject()
|
moleculeMap = MVMCoreUIMoleculeMappingObject()
|
||||||
|
MoleculeObjectMapping.registerObjects()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,10 +70,9 @@
|
|||||||
@"tabsListItem": TabsTableViewCell.class,
|
@"tabsListItem": TabsTableViewCell.class,
|
||||||
@"dropDownListItem": DropDownFilterTableViewCell.class,
|
@"dropDownListItem": DropDownFilterTableViewCell.class,
|
||||||
@"headlineBodyButton": HeadlineBodyButton.class,
|
@"headlineBodyButton": HeadlineBodyButton.class,
|
||||||
@"stackItem": StackItem.class,
|
@"stackItem": MoleculeStackItem.class,
|
||||||
@"eyebrowHeadlineBodyLink": EyebrowHeadlineBodyLink.class,
|
@"eyebrowHeadlineBodyLink": EyebrowHeadlineBodyLink.class,
|
||||||
@"headlineBodyCaretLinkImage" : HeadLineBodyCaretLinkImage.class,
|
@"headlineBodyCaretLinkImage" : HeadLineBodyCaretLinkImage.class,
|
||||||
@"stackItem": StackItem.class,
|
|
||||||
@"doughnutChart": DoughnutChartView.class,
|
@"doughnutChart": DoughnutChartView.class,
|
||||||
@"headLineBodyCaretLinkImage" : HeadLineBodyCaretLinkImage.class
|
@"headLineBodyCaretLinkImage" : HeadLineBodyCaretLinkImage.class
|
||||||
} mutableCopy];
|
} mutableCopy];
|
||||||
@ -85,13 +84,6 @@
|
|||||||
return [MVMCoreActionUtility initializerClassCheck:[CoreUIObject sharedInstance].moleculeMap classToVerify:self];
|
return [MVMCoreActionUtility initializerClassCheck:[CoreUIObject sharedInstance].moleculeMap classToVerify:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)init {
|
|
||||||
if (self = [super init]) {
|
|
||||||
[MoleculeObjectMapping registerObjects];
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (nullable Class)getMoleculeClassWithJSON:(nonnull NSDictionary *)json {
|
- (nullable Class)getMoleculeClassWithJSON:(nonnull NSDictionary *)json {
|
||||||
NSString *moleculeName = [json string:KeyMoleculeName];
|
NSString *moleculeName = [json string:KeyMoleculeName];
|
||||||
if (moleculeName) {
|
if (moleculeName) {
|
||||||
|
|||||||
@ -10,7 +10,8 @@ import Foundation
|
|||||||
|
|
||||||
@objcMembers public class MoleculeObjectMapping: NSObject {
|
@objcMembers public class MoleculeObjectMapping: NSObject {
|
||||||
public static func registerObjects() {
|
public static func registerObjects() {
|
||||||
MVMCoreUIMoleculeMappingObject.shared()?.moleculeMapping.setObject(MoleculeStackView.self, forKey: "stack" as NSString)
|
let mapping = MVMCoreUIMoleculeMappingObject.shared()?.moleculeMapping
|
||||||
|
mapping?.setObject(MoleculeStackView.self, forKey: "stack" as NSString)
|
||||||
|
|
||||||
ModelRegistry.register(LabelModel.self)
|
ModelRegistry.register(LabelModel.self)
|
||||||
ModelRegistry.register(HeaderModel.self)
|
ModelRegistry.register(HeaderModel.self)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user