Skip to content

Commit f06fdd6

Browse files
committed
Remove Assertion
1 parent 309a4c8 commit f06fdd6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

StackScrollView/StackScrollView.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,6 @@ open class StackScrollView: UICollectionView, UICollectionViewDataSource, UIColl
282282
width.constant = collectionView.bounds.width
283283

284284
let size = view.superview?.systemLayoutSizeFitting(UIView.layoutFittingCompressedSize) ?? view.systemLayoutSizeFitting(UIView.layoutFittingCompressedSize)
285-
286-
if #available(iOS 11, *) {
287-
assert(
288-
size.width == collectionView.bounds.width,
289-
"Calculated width(\(size.width)) of view<\(view)> was different width(\(collectionView.bounds.width)) of CollectionView."
290-
)
291-
}
292285

293286
return size
294287

0 commit comments

Comments
 (0)