Repository Public MIT
1{2 "accessibility" : [3 "The close button uses the system close role: the system provides its symbol and its localised label, and it sits in the cancellation placement where assistive technologies expect it.",4 "The title is a navigation title, announced as a heading.",5 "Keyboard avoidance, focus trapping and the Escape key are the system's.",6 "With `isInteractiveDismissDisabled`, keep `showsCloseButton` on (or provide your own way out) so the sheet can always be left."7 ],8 "category" : "containers",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-foundation",21 "version" : "1.0.0"22 }23 ],24 "description" : "System sheet with detents, keyboard handling and an accessible close action.",25 "examples" : [26 {27 "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassSheetExample: GlassExample {\n public static let componentID = \"glass-sheet\"\n @State private var showsFilters = false\n @State private var showsTerms = false\n @State private var keyword = \"\"\n @State private var onlyAvailable = true\n\n public init() {}\n\n public var body: some View {\n VStack(spacing: 16) {\n GlassButton(\"Filters\", systemImage: \"line.3.horizontal.decrease\") { showsFilters = true }\n GlassButton(\"Terms of use\") { showsTerms = true }\n }\n .padding()\n .glassSheet(isPresented: $showsFilters, title: \"Filters\", configuration: .halfAndFull) {\n Form {\n TextField(\"Keyword\", text: $keyword)\n Toggle(\"Only available\", isOn: $onlyAvailable)\n }\n }\n .glassSheet(\n isPresented: $showsTerms,\n title: \"Terms of use\",\n configuration: GlassSheetConfiguration(detents: [.fraction(0.4), .large], isInteractiveDismissDisabled: true)\n ) {\n ScrollView {\n Text(\"Sample terms. This sheet cannot be swiped away: the close button is the way out.\")\n .frame(maxWidth: .infinity, alignment: .leading)\n .padding()\n }\n }\n }\n}\n\n#Preview(\"GlassSheet\") { GlassSheetExample() }\n",28 "title" : "GlassSheet example"29 }30 ],31 "files" : [32 {33 "bytes" : 8253,34 "path" : "Components/Containers/GlassSheet.swift",35 "sha256" : "ec9fee8e9497038d8e87ac6fce699e74a12a7f5813ab99334a17a3822b1261dc"36 }37 ],38 "frameworks" : [3940 ],41 "id" : "glass-sheet",42 "kind" : "native-wrapper",43 "license" : "MIT",44 "minimumOS" : {45 "iOS" : "26.0",46 "iPadOS" : "26.0",47 "macOS" : "26.0"48 },49 "name" : "GlassSheet",50 "platforms" : [51 "iOS",52 "iPadOS",53 "macOS"54 ],55 "schemaVersion" : 1,56 "sha256" : "89f992d29d218f77b3018d42d6867d5e230a7a342e65e0933403a2c8d3df2c04",57 "symbols" : [58 "GlassSheetDetent",59 "GlassSheetConfiguration"60 ],61 "version" : "1.0.0"62}63