How do I add a delete button ONLY when a user is typing in the TextField? At the minute, the delete button is visible & enabled at all times, which could lead to a user accidentally tapping on it and deleting the whole field and that's not good UX. Code is in the comments.

This page summarizes the projects mentioned and recommended in the original post on /r/SwiftUI

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • swiftui-introspect

    Introspect underlying UIKit/AppKit components from SwiftUI

  • I'd consider using Introspect. It's a library on Github that allows you to access the underlying UIKit components on SwiftUI. It's apparently okay to use in production, but can definitely be a bit finicky at times because SwiftUI is weird.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts