{
  "accessibility" : [
    "The reveal button is labelled with the action it performs: \"Show password\", then \"Hide password\" (localised).",
    "The button has the platform's minimum hit target and is reachable with the keyboard.",
    "Errors are an icon and a sentence, not colour alone.",
    "The field is marked `privacySensitive()`, so the system can redact it where it redacts private content."
  ],
  "category" : "forms",
  "changelog" : [
    {
      "changes" : [
        "Release 1.1.0: see the project changelog."
      ],
      "date" : "2026-12-03",
      "version" : "1.1.0"
    },
    {
      "changes" : [
        "Initial release."
      ],
      "date" : "2026-12-02",
      "version" : "1.0.0"
    }
  ],
  "dependencies" : [
    {
      "id" : "glass-forms-support",
      "version" : "1.1.0"
    },
    {
      "id" : "glass-foundation",
      "version" : "1.1.0"
    }
  ],
  "description" : "Secure field with optional explicit reveal; its content is never logged.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassSecureFieldExample: GlassExample {\n    public static let componentID = \"glass-secure-field\"\n    @State private var current = \"\"\n    @State private var new = \"\"\n    @State private var pin = \"\"\n\n    public init() {}\n\n    public var body: some View {\n        ScrollView {\n            VStack(alignment: .leading, spacing: 20) {\n                GlassSecureField(\"Current password\", text: $current, validation: GlassFieldValidation(.required()))\n\n                GlassSecureField(\n                    \"New password\",\n                    text: $new,\n                    prompt: \"At least 12 characters\",\n                    helper: \"Use a phrase you can remember.\",\n                    content: .newPassword,\n                    allowsReveal: true,\n                    validation: GlassFieldValidation(.required(), .minLength(12)),\n                    validateOn: .always\n                )\n\n                GlassSecureField(\"Device PIN\", text: $pin, allowsReveal: true, errorMessage: pin.isEmpty ? nil : \"Demo: this PIN is always rejected.\")\n\n                // Only the length is ever displayed: the example never prints the secret.\n                Text(\"New password length: \\(new.count)\")\n                    .font(.callout)\n                    .foregroundStyle(.secondary)\n            }\n            .padding()\n        }\n    }\n}\n\n#Preview(\"GlassSecureField\") { GlassSecureFieldExample() }\n",
      "title" : "GlassSecureField example"
    }
  ],
  "files" : [
    {
      "bytes" : 7889,
      "path" : "Forms/Forms/GlassSecureField.swift",
      "sha256" : "ffe6641ac68a066bca878239679ce2e1565b5850790f4e66ea4805665c454964"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-secure-field",
  "kind" : "content-component",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassSecureField",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "a896a254feb83bd119156cd9591d68b0c3da08353e50f4c81a47aacdc845f305",
  "symbols" : [
    "GlassSecureContent",
    "GlassSecureFieldReveal",
    "GlassSecureField"
  ],
  "version" : "1.1.0"
}
