you could just try this:
SecureField("Password", text: $password)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: