woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
322 stars 113 forks source link

Replace `resignFirstResponder` with `@FocusState` #13362

Open pmusolino opened 4 months ago

pmusolino commented 4 months ago

Reported here: https://github.com/woocommerce/woocommerce-ios/pull/13329

In the class AddEditCoupon:

UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)

should be replaced with

@FocusState

While addressing this issue, also check if there is similar technical debt in other SwiftUI classes.

dangermattic commented 4 months ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.