diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index bfff6c76..524eabca 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -372,6 +372,22 @@ extension SettingsViewController } } + override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell + { + let cell = super.tableView(tableView, cellForRowAt: indexPath) + + if #available(iOS 14, *) {} + else if let cell = cell as? InsetGroupTableViewCell, + indexPath.section == Section.appRefresh.rawValue, + indexPath.row == AppRefreshRow.backgroundRefresh.rawValue + { + // Only one row is visible pre-iOS 14. + cell.style = .single + } + + return cell + } + override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let section = Section.allCases[section]