Skip to content

Replace resignFirstResponder with @FocusState #13362

@pmusolino

Description

@pmusolino

Reported here: #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowNot many people are affected or there’s a workaround, etc.type: technical debtRepresents or solves tech debt of the project.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions