Skip to content

Commit f45fe6e

Browse files
author
“Akshay
committed
Avoiding button bloating
By keeping the height of the stackview that holds the button equal to the button's height.
1 parent 8336e64 commit f45fe6e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

swift-sdk/uicomponents/IterableEmbeddedView.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,9 @@ public class IterableEmbeddedView:UIView {
198198
contentView.leadingAnchor.constraint(equalTo: self.leadingAnchor),
199199
contentView.trailingAnchor.constraint(equalTo: self.trailingAnchor)
200200
])
201+
202+
buttonStackView.heightAnchor.constraint(equalToConstant: primaryBtn.frame.height).isActive = true
201203
}
202-
203-
// func loadViewFromNib() -> UIView? {
204-
// let nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.module)
205-
// let view = nib.instantiate(withOwner: self, options: nil).first as? UIView
206-
// self.clipsToBounds = false
207-
// return view
208-
// }
209204

210205
func loadViewFromNib() -> UIView? {
211206
var nib: UINib

0 commit comments

Comments
 (0)