Fixed a bug where the ProfilePictureView could incorrectly take up space when hidden

pull/751/head
Morgan Pretty 1 year ago
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…
Cancel
Save