We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5eb3d commit 29f2d60Copy full SHA for 29f2d60
ScrollableStackView/Classes/ScrollableStackView.swift
@@ -56,7 +56,7 @@ import UIKit
56
// Scrolls to item at index
57
@objc public func scrollToItem(index: Int) {
58
if stackView.arrangedSubviews.count > 0 {
59
- var view = stackView.arrangedSubviews[index]
+ let view = stackView.arrangedSubviews[index]
60
61
UIView.animate(withDuration: durationForAnimations, animations: {
62
self.scrollView.setContentOffset(CGPoint(x: 0, y:view.frame.origin.y), animated: true)
0 commit comments