mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
update swiftformat, add organize rule
commit_hash:0f7ba811b37db6d2a9fc05efe5f94502feda4856
This commit is contained in:
@@ -48,6 +48,12 @@ private final class SampleView: UIView {
|
||||
setupView()
|
||||
}
|
||||
|
||||
override func layoutSubviews() {
|
||||
super.layoutSubviews()
|
||||
label.center = bounds.center
|
||||
gradientLayer.frame = bounds
|
||||
}
|
||||
|
||||
private func setupView(text: String = "") {
|
||||
label.text = text
|
||||
label.sizeToFit()
|
||||
@@ -55,9 +61,4 @@ private final class SampleView: UIView {
|
||||
self.addSubview(label)
|
||||
}
|
||||
|
||||
override func layoutSubviews() {
|
||||
super.layoutSubviews()
|
||||
label.center = bounds.center
|
||||
gradientLayer.frame = bounds
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user