Skip to content

Commit cda4fc9

Browse files
committed
Prevent scrolling when the table view is empty
This prevents the odd behavior of letting the user scroll the empty state labels off-screen.
1 parent fd7eace commit cda4fc9

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)