From 47dc34db5d8ea00bce8983b875b657af3c00ba6b Mon Sep 17 00:00:00 2001 From: Flowinho Date: Sun, 15 Mar 2020 22:43:46 +0100 Subject: [PATCH] Fix Typo This contains work related to issue #1910 --- iOS/UIKit Extensions/UITableView-Extensions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iOS/UIKit Extensions/UITableView-Extensions.swift b/iOS/UIKit Extensions/UITableView-Extensions.swift index fd5ff5614..368680ee9 100644 --- a/iOS/UIKit Extensions/UITableView-Extensions.swift +++ b/iOS/UIKit Extensions/UITableView-Extensions.swift @@ -17,13 +17,13 @@ extension UITableView { selectRow(at: indexPath, animated: animations.contains(.select), scrollPosition: .none) if let visibleIndexPaths = indexPathsForRows(in: safeAreaLayoutGuide.layoutFrame) { - if !(visibleIndexPaths.contains(indexPath) && cellCompletelyVisable(indexPath)) { + if !(visibleIndexPaths.contains(indexPath) && cellCompletelyVisible(indexPath)) { scrollToRow(at: indexPath, at: .middle, animated: animations.contains(.scroll)) } } } - func cellCompletelyVisable(_ indexPath: IndexPath) -> Bool { + func cellCompletelyVisible(_ indexPath: IndexPath) -> Bool { let rect = rectForRow(at: indexPath) return safeAreaLayoutGuide.layoutFrame.contains(rect) }