Remove a number of uses of forEach.

This commit is contained in:
Brent Simmons
2024-11-17 22:08:44 -08:00
parent 16d8b0066e
commit c1c4c8b1b6
14 changed files with 45 additions and 32 deletions

View File

@@ -12,10 +12,9 @@ class RoundedProgressView: UIProgressView {
override func layoutSubviews() {
super.layoutSubviews()
subviews.forEach { subview in
for subview in subviews {
subview.layer.masksToBounds = true
subview.layer.cornerRadius = bounds.height / 2.0
}
}
}