SPB Git

Repository Public MIT

manifest.json 2.6 KB 61 lines json

1{2  "accessibility" : [3    "The group is an accessibility container; give it a label so VoiceOver announces what the buttons have in common.",4    "Each button keeps its own label, traits and hit target.",5    "With Reduce Transparency the container is a plain stack and the buttons use the system's opaque treatment."6  ],7  "category" : "buttons",8  "changelog" : [9    {10      "changes" : [11        "Initial release."12      ],13      "date" : "2026-12-02",14      "version" : "1.0.0"15    }16  ],17  "dependencies" : [18    {19      "id" : "glass-foundation",20      "version" : "1.0.0"21    }22  ],23  "description" : "Related glass buttons rendered in one glass container so that they blend consistently.",24  "examples" : [25    {26      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassButtonGroupExample: GlassExample {\n    public static let componentID = \"glass-button-group\"\n    @State private var styles: Set<String> = []\n\n    public init() {}\n\n    public var body: some View {\n        VStack(spacing: 24) {\n            GlassButtonGroup(accessibilityLabel: \"Text style\") {\n                ForEach([\"bold\", \"italic\", \"underline\"], id: \\.self) { style in\n                    GlassIconButton(\n                        systemImage: style,\n                        label: Text(style.capitalized),\n                        variant: styles.contains(style) ? .prominent : .regular\n                    ) {\n                        styles.formSymmetricDifference([style])\n                    }\n                }\n            }\n            GlassButtonGroup(axis: .vertical, spacing: .sm, accessibilityLabel: \"Zoom\") {\n                GlassIconButton(systemImage: \"plus\", accessibilityLabel: \"Zoom in\") {}\n                GlassIconButton(systemImage: \"minus\", accessibilityLabel: \"Zoom out\") {}\n            }\n        }\n        .padding()\n    }\n}\n\n#Preview(\"GlassButtonGroup\") { GlassButtonGroupExample() }\n",27      "title" : "GlassButtonGroup example"28    }29  ],30  "files" : [31    {32      "bytes" : 3481,33      "path" : "Components/Buttons/GlassButtonGroup.swift",34      "sha256" : "cba371feea9736c23629e2d50a2de320e0416ac76b8a173c850d16690d1f554f"35    }36  ],37  "frameworks" : [3839  ],40  "id" : "glass-button-group",41  "kind" : "custom-glass",42  "license" : "MIT",43  "minimumOS" : {44    "iOS" : "26.0",45    "iPadOS" : "26.0",46    "macOS" : "26.0"47  },48  "name" : "GlassButtonGroup",49  "platforms" : [50    "iOS",51    "iPadOS",52    "macOS"53  ],54  "schemaVersion" : 1,55  "sha256" : "5b963b26f1579fad5fc98ca105a5189e87f41b75f60a6b92c5b965b7b5e14bf0",56  "symbols" : [57    "GlassButtonGroup"58  ],59  "version" : "1.0.0"60}61
Files main
Menu

Theme