SPB Git

Repository Public MIT

manifest.json 2.7 KB 68 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        "Release 1.1.0: see the project changelog."12      ],13      "date" : "2026-12-03",14      "version" : "1.1.0"15    },16    {17      "changes" : [18        "Initial release."19      ],20      "date" : "2026-12-02",21      "version" : "1.0.0"22    }23  ],24  "dependencies" : [25    {26      "id" : "glass-foundation",27      "version" : "1.1.0"28    }29  ],30  "description" : "Related glass buttons rendered in one glass container so that they blend consistently.",31  "examples" : [32    {33      "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",34      "title" : "GlassButtonGroup example"35    }36  ],37  "files" : [38    {39      "bytes" : 3481,40      "path" : "Components/Buttons/GlassButtonGroup.swift",41      "sha256" : "cba371feea9736c23629e2d50a2de320e0416ac76b8a173c850d16690d1f554f"42    }43  ],44  "frameworks" : [4546  ],47  "id" : "glass-button-group",48  "kind" : "custom-glass",49  "license" : "MIT",50  "minimumOS" : {51    "iOS" : "26.0",52    "iPadOS" : "26.0",53    "macOS" : "26.0"54  },55  "name" : "GlassButtonGroup",56  "platforms" : [57    "iOS",58    "iPadOS",59    "macOS"60  ],61  "schemaVersion" : 1,62  "sha256" : "5b963b26f1579fad5fc98ca105a5189e87f41b75f60a6b92c5b965b7b5e14bf0",63  "symbols" : [64    "GlassButtonGroup"65  ],66  "version" : "1.1.0"67}68
Files main
Menu

Theme