From 2e99c7baff9fd43f15cda3ef09f93f1bd402adb6 Mon Sep 17 00:00:00 2001 From: Priya Date: Thu, 23 May 2019 12:31:36 -0400 Subject: [PATCH] Switch molecule --- MVMCoreUI.xcodeproj/project.pbxproj | 8 ++++---- MVMCoreUI/Atoms/Buttons/MFTextButton.m | 6 ------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/MVMCoreUI.xcodeproj/project.pbxproj b/MVMCoreUI.xcodeproj/project.pbxproj index ec95f4d8..3d7bdc49 100644 --- a/MVMCoreUI.xcodeproj/project.pbxproj +++ b/MVMCoreUI.xcodeproj/project.pbxproj @@ -1101,8 +1101,8 @@ buildSettings = { BITCODE_GENERATION_MODE = bitcode; CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = ""; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; @@ -1132,8 +1132,8 @@ buildSettings = { BITCODE_GENERATION_MODE = bitcode; CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = ""; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; diff --git a/MVMCoreUI/Atoms/Buttons/MFTextButton.m b/MVMCoreUI/Atoms/Buttons/MFTextButton.m index aa176923..d78df33d 100644 --- a/MVMCoreUI/Atoms/Buttons/MFTextButton.m +++ b/MVMCoreUI/Atoms/Buttons/MFTextButton.m @@ -18,9 +18,6 @@ @interface MFTextButton () - -@property (nullable, nonatomic, strong) NSLayoutConstraint *widthConstraint; - @end @implementation MFTextButton @@ -125,7 +122,6 @@ } else { [theButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisVertical]; } - theButton.widthConstraint = [theButton.widthAnchor constraintEqualToConstant:0]; [theButton updateView:width]; return theButton; } @@ -140,10 +136,8 @@ [self setWithActionMap:json delegateObject:delegateObject additionalData:additionalData]; if ([self titleForState:UIControlStateNormal].length == 0) { self.heightConstraint.constant = 0; - self.widthConstraint.active = YES; } else { self.heightConstraint.constant = self.sizeObject.standardSize; - self.widthConstraint.active = NO; } }