Switch molecule
This commit is contained in:
parent
89b1c9a21b
commit
2e99c7baff
@ -1101,8 +1101,8 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
BITCODE_GENERATION_MODE = bitcode;
|
BITCODE_GENERATION_MODE = bitcode;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
DEFINES_MODULE = YES;
|
DEFINES_MODULE = YES;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||||
@ -1132,8 +1132,8 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
BITCODE_GENERATION_MODE = bitcode;
|
BITCODE_GENERATION_MODE = bitcode;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
DEFINES_MODULE = YES;
|
DEFINES_MODULE = YES;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||||
|
|||||||
@ -18,9 +18,6 @@
|
|||||||
|
|
||||||
@interface MFTextButton ()
|
@interface MFTextButton ()
|
||||||
|
|
||||||
|
|
||||||
@property (nullable, nonatomic, strong) NSLayoutConstraint *widthConstraint;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation MFTextButton
|
@implementation MFTextButton
|
||||||
@ -125,7 +122,6 @@
|
|||||||
} else {
|
} else {
|
||||||
[theButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisVertical];
|
[theButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisVertical];
|
||||||
}
|
}
|
||||||
theButton.widthConstraint = [theButton.widthAnchor constraintEqualToConstant:0];
|
|
||||||
[theButton updateView:width];
|
[theButton updateView:width];
|
||||||
return theButton;
|
return theButton;
|
||||||
}
|
}
|
||||||
@ -140,10 +136,8 @@
|
|||||||
[self setWithActionMap:json delegateObject:delegateObject additionalData:additionalData];
|
[self setWithActionMap:json delegateObject:delegateObject additionalData:additionalData];
|
||||||
if ([self titleForState:UIControlStateNormal].length == 0) {
|
if ([self titleForState:UIControlStateNormal].length == 0) {
|
||||||
self.heightConstraint.constant = 0;
|
self.heightConstraint.constant = 0;
|
||||||
self.widthConstraint.active = YES;
|
|
||||||
} else {
|
} else {
|
||||||
self.heightConstraint.constant = self.sizeObject.standardSize;
|
self.heightConstraint.constant = self.sizeObject.standardSize;
|
||||||
self.widthConstraint.active = NO;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user