Repository Public MIT
1{2 "accessibility" : [3 "The label is the accessibility label of the editor. While it is empty, the placeholder is read as its value; the painted placeholder itself is hidden from assistive technologies.",4 "The limit counts user-perceived characters: an emoji, a flag or an accented letter counts as one and is never cut in two.",5 "The counter has a spoken form with words, and digits follow the locale.",6 "The minimum height grows with the text size; the editor scrolls inside it."7 ],8 "category" : "forms",9 "changelog" : [10 {11 "changes" : [12 "Initial release."13 ],14 "date" : "2026-12-02",15 "version" : "1.0.0"16 }17 ],18 "dependencies" : [19 {20 "id" : "glass-forms-support",21 "version" : "1.0.0"22 },23 {24 "id" : "glass-foundation",25 "version" : "1.0.0"26 }27 ],28 "description" : "Multiline editor with an accessible placeholder, optional limit and counter.",29 "examples" : [30 {31 "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassTextAreaExample: GlassExample {\n public static let componentID = \"glass-text-area\"\n @State private var notes = \"\"\n @State private var bio = \"Hiking 🥾, bread 🍞 and old maps 🗺️.\"\n @State private var feedback = \"Too short\"\n\n public init() {}\n\n public var body: some View {\n ScrollView {\n VStack(alignment: .leading, spacing: 20) {\n GlassTextArea(\"Notes\", text: $notes, placeholder: \"Anything the team should know before the visit\", helper: \"Visible to your team only.\")\n\n GlassTextArea(\"Short bio\", text: $bio, limit: 40)\n\n GlassTextArea(\n \"Feedback\",\n text: $feedback,\n showsCounter: true,\n minHeight: 72,\n errorMessage: feedback.count < 20 ? \"Please write at least 20 characters.\" : nil\n )\n\n GlassTextArea(\"Archived comment\", text: .constant(\"This comment can no longer be edited.\"))\n .disabled(true)\n }\n .padding()\n }\n }\n}\n\n#Preview(\"GlassTextArea\") { GlassTextAreaExample().glassTheme(.solar) }\n",32 "title" : "GlassTextArea example"33 }34 ],35 "files" : [36 {37 "bytes" : 7817,38 "path" : "Forms/Forms/GlassTextArea.swift",39 "sha256" : "1f3f194feb0b4135d0b5943ebe665a2006be301d6fe48f443ccad66a54babdbb"40 }41 ],42 "frameworks" : [4344 ],45 "id" : "glass-text-area",46 "kind" : "content-component",47 "license" : "MIT",48 "minimumOS" : {49 "iOS" : "26.0",50 "iPadOS" : "26.0",51 "macOS" : "26.0"52 },53 "name" : "GlassTextArea",54 "platforms" : [55 "iOS",56 "iPadOS",57 "macOS"58 ],59 "schemaVersion" : 1,60 "sha256" : "85b0ca51d1c174ed3cea461fd0ec0ebd0dd9cce48f002ab701122c7852377921",61 "symbols" : [62 "GlassTextLimit",63 "GlassTextArea"64 ],65 "version" : "1.0.0"66}67