name change
This commit is contained in:
parent
5c619aa843
commit
8400c0eae8
@ -38,7 +38,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;
|
||||
|
||||
@ -347,7 +347,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];
|
||||
|
||||
@ -11,7 +11,7 @@ import UIKit
|
||||
open class StandardFooterView: ViewConstrainingView {
|
||||
open override func setupView() {
|
||||
super.setupView()
|
||||
setupMoleculeFromJSON = true
|
||||
shouldSetupMoleculeFromJSON = true
|
||||
updateViewVerticalDefaults = true
|
||||
updateViewHorizontalDefaults = true
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ public class StandardHeaderView: ViewConstrainingView {
|
||||
|
||||
public override func setupView() {
|
||||
super.setupView()
|
||||
setupMoleculeFromJSON = true
|
||||
shouldSetupMoleculeFromJSON = true
|
||||
updateViewVerticalDefaults = true
|
||||
updateViewHorizontalDefaults = true
|
||||
if separatorView == nil, let separatorView = SeparatorView.separatorAdd(to: self, position: SeparatorPositionBot, withHorizontalPadding: 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user