Repository Public MIT
1{2 "accessibility" : [3 "The button always has a text label, visible or not.",4 "It is laid out inside the safe area: it stays clear of the home indicator, of bars and of the software keyboard.",5 "The hit target meets the platform minimum.",6 "Do not make it the only way to reach an action: offer the same command in a menu or toolbar for keyboard and Switch Control users."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" : "Floating action placed inside the safe area, clear of the keyboard.",36 "examples" : [37 {38 "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassFloatingButtonExample: GlassExample {\n public static let componentID = \"glass-floating-button\"\n @State private var notes = [\"Groceries\", \"Reading list\", \"Trip ideas\"]\n @State private var isExtended = true\n\n public init() {}\n\n public var body: some View {\n List {\n Toggle(\"Show title\", isOn: $isExtended)\n ForEach(notes, id: \\.self) { Text($0) }\n }\n .frame(minHeight: 280)\n .glassFloatingButton(\"New note\", systemImage: \"plus\", position: .bottomTrailing, isExtended: isExtended) {\n notes.append(\"Note \\(notes.count + 1)\")\n }\n }\n}\n\n#Preview(\"GlassFloatingButton\") { GlassFloatingButtonExample() }\n",39 "title" : "GlassFloatingButton example"40 }41 ],42 "files" : [43 {44 "bytes" : 5511,45 "path" : "Components/Buttons/GlassFloatingButton.swift",46 "sha256" : "abfadc1bbe56d4dde67d1b68fc39aa91482663a14b5763e71e68baaeadeb420e"47 }48 ],49 "frameworks" : [5051 ],52 "id" : "glass-floating-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" : "GlassFloatingButton",61 "platforms" : [62 "iOS",63 "iPadOS",64 "macOS"65 ],66 "schemaVersion" : 1,67 "sha256" : "b2eba93cb27f987db7b1760fd394407e0fc646d842fa672337e9046b73eb943d",68 "symbols" : [69 "GlassFloatingPosition",70 "GlassFloatingButton"71 ],72 "version" : "1.1.0"73}74