Skip to content

Commit

Permalink
😺[CHORE] UIView+ (X)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongkite committed Nov 21, 2022
1 parent 5cb998d commit d09ca35
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
import UIKit.UIView

extension UIView {
func addSubviews(_ views: [UIView]) {
views.forEach {
self.addSubview($0)
$0.translatesAutoresizingMaskIntoConstraints = false
}
func addSubviews(_ views: UIView...) {
views.forEach { self.addSubview($0) }
}

var cornerRadius: CGFloat {
Expand Down

0 comments on commit d09ca35

Please sign in to comment.