Swift95

Secure​Field95

A secure native text field with classic input styling.

SecureField95 keeps the system secure-entry behavior and styles the field without exposing or duplicating its private value.

SecureField95 containing an obscured windows95 password
The complete secure field rendered by the snippet below.

Use it

import Swift95
import SwiftUI

struct SecureField95Example: View {
  @State private var password = "windows95"

  var body: some View {
    SecureField95("Password", text: $password)
      .swiftUI { field in
        field.textContentType(.password)
      }
      .frame(width: 380)
  }
}

Essential behavior

PrivacyUses SwiftUI SecureField for native obscured text entry.
Native APIsUse swiftUI(_:) for text content type and submit behavior.
SizingChoose a width that fits the expected credential instead of filling an entire desktop form.
StateInherits enabled state, colors, fonts, and metrics from the environment.

Related

Open the complete SecureField95 API reference →