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 "Release 1.1.0: see the project changelog."13 ],14 "date" : "2026-12-03",15 "version" : "1.1.0"16 },17 {18 "changes" : [19 "Initial release."20 ],21 "date" : "2026-12-02",22 "version" : "1.0.0"23 }24 ],25 "dependencies" : [26 {27 "id" : "glass-foundation",28 "version" : "1.1.0"29 }30 ],31 "description" : "System sheet with detents, keyboard handling and an accessible close action.",32 "examples" : [33 {34 "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",35 "title" : "GlassSheet example"36 }37 ],38 "files" : [39 {40 "bytes" : 8253,41 "path" : "Components/Containers/GlassSheet.swift",42 "sha256" : "ec9fee8e9497038d8e87ac6fce699e74a12a7f5813ab99334a17a3822b1261dc"43 }44 ],45 "frameworks" : [4647 ],48 "id" : "glass-sheet",49 "kind" : "native-wrapper",50 "license" : "MIT",51 "minimumOS" : {52 "iOS" : "26.0",53 "iPadOS" : "26.0",54 "macOS" : "26.0"55 },56 "name" : "GlassSheet",57 "platforms" : [58 "iOS",59 "iPadOS",60 "macOS"61 ],62 "schemaVersion" : 1,63 "sha256" : "89f992d29d218f77b3018d42d6867d5e230a7a342e65e0933403a2c8d3df2c04",64 "symbols" : [65 "GlassSheetDetent",66 "GlassSheetConfiguration"67 ],68 "version" : "1.1.0"69}70