Switch molecule

This commit is contained in:
Priya 2019-05-23 12:31:36 -04:00
parent 89b1c9a21b
commit 2e99c7baff
2 changed files with 4 additions and 10 deletions

View File

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

View File

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