resolve discussions
This commit is contained in:
parent
f6021bb382
commit
436e9035d2
@ -37,7 +37,7 @@
|
||||
@property (weak, nullable, nonatomic) UIView <MVMCoreUIMoleculeViewProtocol>*molecule;
|
||||
|
||||
/// A flag for if we should add a molecule from json.
|
||||
@property (nonatomic) BOOL setupMoleculeFromJSON;
|
||||
@property (nonatomic) BOOL shouldSetupMoleculeFromJSON;
|
||||
|
||||
// Returns an empty view
|
||||
+ (nonnull ViewConstrainingView *)emptyView;
|
||||
|
||||
@ -341,7 +341,7 @@
|
||||
[super setWithJSON:json delegateObject:delegateObject additionalData:additionalData];
|
||||
|
||||
[self.molecule setWithJSON:json delegateObject:delegateObject additionalData:additionalData];
|
||||
if (self.setupMoleculeFromJSON && !self.molecule) {
|
||||
if (self.shouldSetupMoleculeFromJSON && !self.molecule) {
|
||||
NSDictionary *moleculeJSON = [json dict:KeyMolecule];
|
||||
if (moleculeJSON) {
|
||||
UIView <MVMCoreUIMoleculeViewProtocol>*molecule = [[MVMCoreUIMoleculeMappingObject sharedMappingObject] createMoleculeForJSON:moleculeJSON delegateObject:delegateObject constrainIfNeeded:true];
|
||||
@ -349,6 +349,7 @@
|
||||
[self insertSubview:molecule atIndex:0];
|
||||
[self pinViewToSuperView:molecule];
|
||||
}
|
||||
self.molecule = molecule;
|
||||
}
|
||||
}
|
||||
if (self.molecule) {
|
||||
|
||||
@ -11,7 +11,7 @@ import UIKit
|
||||
open class StandardFooterView: ViewConstrainingView {
|
||||
open override func setupView() {
|
||||
super.setupView()
|
||||
setupMoleculeFromJSON = true
|
||||
shouldSetupMoleculeFromJSON = true
|
||||
}
|
||||
|
||||
open override func setWithJSON(_ json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable : Any]?) {
|
||||
|
||||
@ -19,7 +19,7 @@ public class StandardHeaderView: ViewConstrainingView {
|
||||
|
||||
public override func setupView() {
|
||||
super.setupView()
|
||||
setupMoleculeFromJSON = true
|
||||
shouldSetupMoleculeFromJSON = true
|
||||
if separatorView == nil, let separatorView = SeparatorView.separatorAdd(to: self, position: SeparatorPositionBot, withHorizontalPadding: 0) {
|
||||
separatorView.setAsHeavy()
|
||||
addSubview(separatorView)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user