Skip to content

Commit a78533f

Browse files
authored
Deprecated buggy function: scroll(to view: UIView, animated: Bool) (#12)
1 parent e7143cf commit a78533f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

StackScrollView/StackScrollView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ open class StackScrollView: UICollectionView, UICollectionViewDataSource, UIColl
250250
}
251251
}
252252

253+
/// This method might fail if the view is out of bounds. Use `func scroll(to view: UIView, at position: UICollectionView.ScrollPosition, animated: Bool)` instead
254+
@available(*, deprecated, message: "Use `scroll(to view: UIView, at position: UICollectionView.ScrollPosition, animated: Bool)` instead")
253255
open func scroll(to view: UIView, animated: Bool) {
254256

255257
let targetRect = view.convert(view.bounds, to: self)

0 commit comments

Comments
 (0)