SPB Git

Repository Public MIT

manifest.json 2.7 KB 74 lines json

1{2  "accessibility" : [3    "A label is mandatory in the initialiser; a symbol alone is never the accessible name.",4    "The tappable area is at least 44 × 44 points on iOS and iPadOS, and 24 × 24 on macOS, at every size.",5    "The label is also the tooltip on macOS (`.help`).",6    "State must not rely on the symbol colour alone: change the symbol or the label, as in the example."7  ],8  "category" : "buttons",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-components-support",28      "version" : "1.1.0"29    },30    {31      "id" : "glass-foundation",32      "version" : "1.1.0"33    }34  ],35  "description" : "Symbol-only glass button with a mandatory accessibility label and a full-size hit target.",36  "examples" : [37    {38      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassIconButtonExample: GlassExample {\n    public static let componentID = \"glass-icon-button\"\n    @State private var isFavourite = false\n\n    public init() {}\n\n    public var body: some View {\n        HStack(spacing: 16) {\n            GlassIconButton(systemImage: \"square.and.arrow.up\", accessibilityLabel: \"Share\") {}\n            GlassIconButton(\n                systemImage: isFavourite ? \"star.fill\" : \"star\",\n                accessibilityLabel: isFavourite ? \"Remove from favourites\" : \"Add to favourites\",\n                variant: .prominent\n            ) { isFavourite.toggle() }\n            GlassIconButton(systemImage: \"trash\", accessibilityLabel: \"Delete\", role: .destructive, size: .small) {}\n            GlassIconButton(systemImage: \"ellipsis\", accessibilityLabel: \"More\", size: .large) {}\n        }\n        .padding()\n    }\n}\n\n#Preview(\"GlassIconButton\") { GlassIconButtonExample() }\n",39      "title" : "GlassIconButton example"40    }41  ],42  "files" : [43    {44      "bytes" : 4532,45      "path" : "Components/Buttons/GlassIconButton.swift",46      "sha256" : "6f3eea07f59345113894a0e5bc0d897b2ec7225821e43244d1c2e13677672f1d"47    }48  ],49  "frameworks" : [5051  ],52  "id" : "glass-icon-button",53  "kind" : "native-wrapper",54  "license" : "MIT",55  "minimumOS" : {56    "iOS" : "26.0",57    "iPadOS" : "26.0",58    "macOS" : "26.0"59  },60  "name" : "GlassIconButton",61  "platforms" : [62    "iOS",63    "iPadOS",64    "macOS"65  ],66  "schemaVersion" : 1,67  "sha256" : "e1ac66e36680dd6863e428f577dc85e10522dcef808f50b7f9b17669cb9517eb",68  "symbols" : [69    "GlassIconButton",70    "GlassIconButtonMetrics"71  ],72  "version" : "1.1.0"73}74
Files main
Menu

Theme