From 719fb5431136f692117077d9ddafe17c3daa1f1a Mon Sep 17 00:00:00 2001 From: Phil Viso Date: Sun, 19 May 2019 19:08:49 -0500 Subject: [PATCH] Allow delete account row to be tapped --- iOS/Settings/DetailAccountViewController.swift | 8 ++++++++ iOS/Settings/Settings.storyboard | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/iOS/Settings/DetailAccountViewController.swift b/iOS/Settings/DetailAccountViewController.swift index 4640671ab..9ab945120 100644 --- a/iOS/Settings/DetailAccountViewController.swift +++ b/iOS/Settings/DetailAccountViewController.swift @@ -51,6 +51,14 @@ extension DetailAccountViewController { return cell } + override func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool { + if indexPath.section == 1 { + return true + } + + return false + } + override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { if indexPath.section == 1 { deleteAccount() diff --git a/iOS/Settings/Settings.storyboard b/iOS/Settings/Settings.storyboard index 435e042e1..7a67ec398 100644 --- a/iOS/Settings/Settings.storyboard +++ b/iOS/Settings/Settings.storyboard @@ -314,7 +314,7 @@ - +