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