Repository Public MIT
1{2 "accessibility" : [3 "The action and the menu are two separate, labelled elements on iOS and iPadOS.",4 "The menu part has its own name, \"More actions\" by default, in English and French.",5 "Both parts meet the minimum hit target.",6 "Menu items are standard buttons: VoiceOver, keyboard and Switch Control work as in any system menu."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" : "Primary action with a separate menu of secondary actions.",36 "examples" : [37 {38 "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassSplitButtonExample: GlassExample {\n public static let componentID = \"glass-split-button\"\n @State private var lastAction = \"Nothing sent yet\"\n\n public init() {}\n\n public var body: some View {\n VStack(spacing: 16) {\n GlassSplitButton(\"Send\", systemImage: \"paperplane\", variant: .prominent) {\n lastAction = \"Sent now\"\n } menu: {\n Button(\"Send later…\", systemImage: \"clock\") { lastAction = \"Scheduled\" }\n Button(\"Save as draft\", systemImage: \"tray\") { lastAction = \"Saved as draft\" }\n }\n Text(lastAction).font(.callout).foregroundStyle(.secondary)\n }\n .padding()\n }\n}\n\n#Preview(\"GlassSplitButton\") { GlassSplitButtonExample() }\n",39 "title" : "GlassSplitButton example"40 }41 ],42 "files" : [43 {44 "bytes" : 4527,45 "path" : "Components/Buttons/GlassSplitButton.swift",46 "sha256" : "26fc915724ad073b8f738e16f20a90fdd1784ca69f43bcf8132f28368fec93f6"47 }48 ],49 "frameworks" : [5051 ],52 "id" : "glass-split-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" : "GlassSplitButton",61 "platforms" : [62 "iOS",63 "iPadOS",64 "macOS"65 ],66 "schemaVersion" : 1,67 "sha256" : "c8fb35a0003572c0e2349c4a8fdaaf70ca4f28292c2b1fee1f15bc464ad27762",68 "symbols" : [69 "GlassSplitButton"70 ],71 "version" : "1.1.0"72}73