Skip to content

Commit b0d7b57

Browse files
committed
Add frame argument to UIStackView convenience init method
1 parent 6823123 commit b0d7b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/UIViewKit/UIKitExtensions/UIStackView+Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import UIKit
99

1010
extension UIStackView {
1111

12-
public convenience init(axis: NSLayoutConstraint.Axis, spacing: CGFloat? = nil, alignment: UIStackView.Alignment? = nil, distribution: UIStackView.Distribution? = nil) {
13-
self.init()
12+
public convenience init(frame: CGRect = .zero, axis: NSLayoutConstraint.Axis, spacing: CGFloat? = nil, alignment: UIStackView.Alignment? = nil, distribution: UIStackView.Distribution? = nil) {
13+
self.init(frame: frame)
1414
self.axis = axis
1515
if let spacing {
1616
self.spacing = spacing

0 commit comments

Comments
 (0)