Skip to content

Commit

Permalink
Hide NFC settings on iPads.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensutbult committed Sep 30, 2024
1 parent ce40cc5 commit e04bce0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ class ConfigurationController: UITableViewController {
}

override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// Hide FIDO section on iPad
// Hide FIDO rows on iPad
if section == 3 && UIDevice.current.userInterfaceIdiom == .pad {
return 0
// Hide NFC Settings row on iPad
} else if section == 1 && UIDevice.current.userInterfaceIdiom == .pad {
return 1
} else {
return super.tableView(tableView, numberOfRowsInSection: section)
}
Expand Down

0 comments on commit e04bce0

Please sign in to comment.