Switch molecule
This commit is contained in:
parent
89b1c9a21b
commit
2e99c7baff
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user