From 0fc16ddb7841c4143f640e361e619ca884b79f08 Mon Sep 17 00:00:00 2001 From: Isha Nagireddy Date: Wed, 18 Feb 2026 17:31:43 -0500 Subject: [PATCH] fixed cancel button bug when the route options view is opened and then the back button is clicked, the cancel button was still showing in the search bar --- TCAT/Controllers/HomeOptionsCardViewController+Extensions.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TCAT/Controllers/HomeOptionsCardViewController+Extensions.swift b/TCAT/Controllers/HomeOptionsCardViewController+Extensions.swift index 37ad26fb..e4d4ea01 100644 --- a/TCAT/Controllers/HomeOptionsCardViewController+Extensions.swift +++ b/TCAT/Controllers/HomeOptionsCardViewController+Extensions.swift @@ -19,6 +19,8 @@ extension HomeOptionsCardViewController { // Update searchbar attributes searchBar.placeholder = Constants.General.searchPlaceholder searchBar.text = nil + searchBar.setShowsCancelButton(false, animated: true) + animateInInfoButton() NotificationCenter.default.addObserver( self,