Skip to content

Commit 51d3e46

Browse files
authored
Merge pull request #187 from mattrubin/prevent-empty-scroll
Prevent scrolling when the table view is empty
2 parents fd7eace + cda4fc9 commit 51d3e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authenticator/Source/TokenListViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ extension TokenListViewController {
258258
}
259259

260260
fileprivate func updatePeripheralViews() {
261-
262261
searchBar.updateWithViewModel(viewModel)
263262

263+
tableView.isScrollEnabled = viewModel.hasTokens
264264
editButtonItem.isEnabled = viewModel.hasTokens
265265
noTokensLabel.isHidden = viewModel.hasTokens
266266
warningLabel.isHidden = viewModel.hasTokens

0 commit comments

Comments
 (0)