SPB Git

Repository Public MIT

manifest.json 3.2 KB 78 lines json

1{2  "accessibility" : [3    "Label \"Reset to north\"; value \"Heading 270 degrees\" or \"Heading unavailable\". The tooltip on macOS is the same text.",4    "Availability is conveyed by the shape of the symbol (filled or outlined), the disabled state and the value — not by colour alone.",5    "With Reduce Motion the needle is set to its new angle without a rotation animation.",6    "The target is at least 44 points on iOS and iPadOS."7  ],8  "category" : "maps",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      "id" : "glass-icon-button",32      "version" : "1.1.0"33    },34    {35      "id" : "glass-maps-support",36      "version" : "1.1.0"37    }38  ],39  "description" : "Compass driven by an injected heading, with reset to north and an unavailable state.",40  "examples" : [41    {42      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassCompassExample: GlassExample {\n    public static let componentID = \"glass-compass\"\n    @State private var heading = 315.0\n    @State private var resetCount = 0\n\n    public init() {}\n\n    public var body: some View {\n        VStack(spacing: 16) {\n            SampleMapBackdrop(heading: heading)\n                .overlay(alignment: .topTrailing) {\n                    VStack(spacing: 12) {\n                        GlassCompass(heading: heading, size: .large) {\n                            heading = 0\n                            resetCount += 1\n                        }\n                        GlassCompass(heading: heading) { heading = 0 }\n                        GlassCompass(heading: heading, size: .small) { heading = 0 }\n                        GlassCompass(heading: nil) {}\n                    }\n                    .padding()\n                }\n            Slider(value: $heading, in: 0...359, step: 1) { Text(\"Heading\") }\n                .padding(.horizontal)\n            Text(\"Heading \\(Int(heading))° · reset to north \\(resetCount) times · the last compass has no heading\")\n                .font(.caption)\n                .foregroundStyle(.secondary)\n                .padding(.horizontal)\n        }\n        .padding(.bottom)\n    }\n}\n\n#Preview(\"GlassCompass\") { GlassCompassExample().glassTheme(.crystal) }\n",43      "title" : "GlassCompass example"44    }45  ],46  "files" : [47    {48      "bytes" : 7174,49      "path" : "Maps/Maps/GlassCompass.swift",50      "sha256" : "8e04f7d98d9f120230c7e6790c2eaa62e56f4cb2bcd9968ea80a243f1782a939"51    }52  ],53  "frameworks" : [5455  ],56  "id" : "glass-compass",57  "kind" : "custom-glass",58  "license" : "MIT",59  "minimumOS" : {60    "iOS" : "26.0",61    "iPadOS" : "26.0",62    "macOS" : "26.0"63  },64  "name" : "GlassCompass",65  "platforms" : [66    "iOS",67    "iPadOS",68    "macOS"69  ],70  "schemaVersion" : 1,71  "sha256" : "34dd26c5d7b64be2944fc703197039a7998f4004a634bce4318acec659bcf9db",72  "symbols" : [73    "GlassCompass",74    "GlassCompassSymbols"75  ],76  "version" : "1.1.0"77}78
Files main
Menu

Theme