name change

This commit is contained in:
Pfeil, Scott Robert 2019-07-19 10:53:16 -04:00
parent 5c619aa843
commit 8400c0eae8
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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];

View File

@ -11,7 +11,7 @@ import UIKit
open class StandardFooterView: ViewConstrainingView {
open override func setupView() {
super.setupView()
setupMoleculeFromJSON = true
shouldSetupMoleculeFromJSON = true
updateViewVerticalDefaults = true
updateViewHorizontalDefaults = true
}

View File

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