Guard
This commit is contained in:
parent
bf656cffea
commit
be045ac4a9
@ -28,7 +28,9 @@ public class StandardFooterView: ViewConstrainingView {
|
|||||||
|
|
||||||
public override func setupView() {
|
public override func setupView() {
|
||||||
super.setupView()
|
super.setupView()
|
||||||
if subviews.count == 0 {
|
guard subviews.count == 0 else {
|
||||||
|
return
|
||||||
|
}
|
||||||
translatesAutoresizingMaskIntoConstraints = false
|
translatesAutoresizingMaskIntoConstraints = false
|
||||||
backgroundColor = .clear
|
backgroundColor = .clear
|
||||||
clipsToBounds = true
|
clipsToBounds = true
|
||||||
@ -62,7 +64,6 @@ public class StandardFooterView: ViewConstrainingView {
|
|||||||
|
|
||||||
heightConstraint = heightAnchor.constraint(equalToConstant: 0)
|
heightConstraint = heightAnchor.constraint(equalToConstant: 0)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public func setSpacing() {
|
public func setSpacing() {
|
||||||
if twoButtonView.subviews.count > 0 && textButton.title(for: UIControl.State.normal)?.count ?? 0 > 0 {
|
if twoButtonView.subviews.count > 0 && textButton.title(for: UIControl.State.normal)?.count ?? 0 > 0 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user