Skip to content

Commit 29f2d60

Browse files
committed
Eliminated a warning
1 parent 1a5eb3d commit 29f2d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ScrollableStackView/Classes/ScrollableStackView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import UIKit
5656
// Scrolls to item at index
5757
@objc public func scrollToItem(index: Int) {
5858
if stackView.arrangedSubviews.count > 0 {
59-
var view = stackView.arrangedSubviews[index]
59+
let view = stackView.arrangedSubviews[index]
6060

6161
UIView.animate(withDuration: durationForAnimations, animations: {
6262
self.scrollView.setContentOffset(CGPoint(x: 0, y:view.frame.origin.y), animated: true)

0 commit comments

Comments
 (0)