change close button size in notification
This commit is contained in:
parent
e31ddb4664
commit
e229e5b184
@ -26,6 +26,8 @@ import Foundation
|
|||||||
adjustsImageWhenHighlighted = false
|
adjustsImageWhenHighlighted = false
|
||||||
accessibilityLabel = MVMCoreUIUtility.hardcodedString(withKey: "AccCloseButton")
|
accessibilityLabel = MVMCoreUIUtility.hardcodedString(withKey: "AccCloseButton")
|
||||||
setContentCompressionResistancePriority(.defaultHigh, for: .horizontal)
|
setContentCompressionResistancePriority(.defaultHigh, for: .horizontal)
|
||||||
|
heightAnchor.constraint(equalToConstant: 16.0).isActive = true
|
||||||
|
widthAnchor.constraint(equalToConstant: 16.0).isActive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
||||||
|
|||||||
@ -77,6 +77,8 @@
|
|||||||
[[MVMCoreUISession sharedGlobal].topAlertView hideAlertView:YES completionHandler:nil];
|
[[MVMCoreUISession sharedGlobal].topAlertView hideAlertView:YES completionHandler:nil];
|
||||||
}
|
}
|
||||||
} centeredVertically:YES];
|
} centeredVertically:YES];
|
||||||
|
[closeButton.heightAnchor constraintEqualToConstant:16.0].active = YES;
|
||||||
|
[closeButton.widthAnchor constraintEqualToConstant:16.0].active = YES;
|
||||||
[MVMCoreUITopAlertBaseView amendAccesibilityLabelForView:closeButton];
|
[MVMCoreUITopAlertBaseView amendAccesibilityLabelForView:closeButton];
|
||||||
return closeButton;
|
return closeButton;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user