Fixed a bug where the ProfilePictureView could incorrectly take up space when hidden
This commit is contained in:
parent
fd2794cbc2
commit
0cfd87ee27
|
@ -119,6 +119,12 @@ public final class ProfilePictureView: UIView {
|
|||
imageContainerView.layer.cornerRadius = (clipsToBounds ? (size.multiImageSize / 2) : 0)
|
||||
}
|
||||
}
|
||||
public override var isHidden: Bool {
|
||||
didSet {
|
||||
widthConstraint.constant = (isHidden ? 0 : size.viewSize)
|
||||
heightConstraint.constant = (isHidden ? 0 : size.viewSize)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Constraints
|
||||
|
||||
|
|
Loading…
Reference in New Issue