diff --git a/ChartsDemo-iOS/Swift/DemoBaseViewController.swift b/ChartsDemo-iOS/Swift/DemoBaseViewController.swift index 3f0f920a51..6445f11cab 100644 --- a/ChartsDemo-iOS/Swift/DemoBaseViewController.swift +++ b/ChartsDemo-iOS/Swift/DemoBaseViewController.swift @@ -336,10 +336,10 @@ extension DemoBaseViewController: UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { if optionsTableView != nil { - return 40.0; + return 40.0 } - return 44.0; + return 44.0 } @available(iOS 2.0, *) @@ -360,10 +360,8 @@ extension DemoBaseViewController: UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { if optionsTableView != nil { tableView.deselectRow(at: indexPath, animated: true) - optionsTableView?.removeFromSuperview() self.optionsTableView = nil - self.optionTapped(self.options[indexPath.row]) }