SPB Git

Repository Public MIT

manifest.json 2.6 KB 69 lines json

1{2  "accessibility" : [3    "The button is labelled \"Mute\" or \"Unmute\" (also its tooltip on macOS) and has a 44-point target on iOS.",4    "The slider is labelled \"Volume\"; its value is spoken as a localised percentage, or \"Muted\" at 0. It is adjustable with VoiceOver.",5    "The level is conveyed by the symbol's shape and the spoken value, not by colour."6  ],7  "category" : "media",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" : "Volume of the application's own playback, with mute.",31  "examples" : [32    {33      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassVolumeControlExample: GlassExample {\n    public static let componentID = \"glass-volume-control\"\n    @State private var musicVolume = 0.65\n    @State private var effectsVolume = 0.0\n\n    public init() {}\n\n    public var body: some View {\n        Form {\n            Section(\"Music\") {\n                GlassVolumeControl(volume: $musicVolume, showsValue: true)\n                LabeledContent(\"Level applied to the player\", value: musicVolume, format: .percent.precision(.fractionLength(0)))\n            }\n            Section(\"Effects (starts muted)\") {\n                GlassVolumeControl(volume: $effectsVolume, unmuteLevel: 0.4)\n            }\n            Section(\"Disabled\") {\n                GlassVolumeControl(volume: .constant(0.3))\n                    .disabled(true)\n            }\n        }\n        .formStyle(.grouped)\n    }\n}\n\n#Preview(\"GlassVolumeControl\") { GlassVolumeControlExample().glassTheme(.emerald) }\n",34      "title" : "GlassVolumeControl example"35    }36  ],37  "files" : [38    {39      "bytes" : 7443,40      "path" : "Media/Media/GlassVolumeControl.swift",41      "sha256" : "ae6f9381ae90195bc4a5e6ed5efba7ad609912efcbb28cb4b1defe30f7f797e8"42    }43  ],44  "frameworks" : [4546  ],47  "id" : "glass-volume-control",48  "kind" : "native-wrapper",49  "license" : "MIT",50  "minimumOS" : {51    "iOS" : "26.0",52    "iPadOS" : "26.0",53    "macOS" : "26.0"54  },55  "name" : "GlassVolumeControl",56  "platforms" : [57    "iOS",58    "iPadOS",59    "macOS"60  ],61  "schemaVersion" : 1,62  "sha256" : "50ed50932a8824468266b06886937c1eee99b410cfe4d679e24add84552185b8",63  "symbols" : [64    "GlassVolumeControl",65    "GlassVolumeState"66  ],67  "version" : "1.1.0"68}69
Files main
Menu

Theme