mirror of
https://github.com/utmapp/UTM.git
synced 2026-10-12 02:24:01 +00:00
Building with the iOS 27 SDK broke the VM toolbar on both iOS 26.1 and iOS 27. On iOS 27 `.buttonStyle(.glass)` with a circle border shape sizes each button from its label, so narrow glyphs got smaller circles than the menus and the implicit gap iOS 26 added between buttons disappeared. On iOS 26.1 the glass adapts to the backdrop and turns almost black over the VM display, leaving only a faint outline of each button. Replace the system glass button style with a custom style that draws the icon in the same fixed frame as the pre-iOS 26 style and applies interactive glass in a circle. A neutral gray tint with white icons keeps the buttons readable over both dark and light guest content on either runtime. Stack spacing no longer depends on the OS version, and the pre-iOS 26 path is unchanged. Assisted-by: Claude:claude-fable-5-1