Skip to content

Compile CoMaps resources and preserve asset variants on Linux - #368

Merged
hyzyla merged 10 commits into
mainfrom
linux-resource-compatibility
Nov 28, 2026
Merged

hyzyla merged 10 commits into
mainfrom
linux-resource-compatibility

Conversation

@hyzyla

@hyzyla hyzyla commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

SweetPad can compile the interface files and generate Swift asset accessors used by CoMaps at its iOS 15.6 deployment target. The Linux compilers preserve date pickers, attributed labels, button colors, size classes, explicitly scaled SVGs and image layout direction.

The compatibility workflow builds a pinned CoMaps checkout on Ubuntu x86-64 and arm64. A macOS job compares image renditions with Xcode and installs the Linux-built resources in an iPhone simulator. It checks rendered directional PNGs and PDFs, separate artwork for each direction, and the width of the speed panel from the original NavigationControlView.xib as the horizontal and vertical size classes change.

The fixture inventory now fails CI when a CoMaps combination has no source fixture. The reduced navigation fixture also runs on Linux against a nib recorded with Xcode.

The Linux PDF renderer now preserves alpha masks whose transparency group omits a color space. This restores the cutout plus and minus in the CoMaps booking controls. A focused Rust fixture checks transparent, opaque and partially transparent pixels. The hosted iPhone probe also compares all 108 PDF image sets with Xcode at 1×, 2× and 3×.

Linux actool preserves the symbol template’s CSS, default rendering intent, hierarchical and multicolor layer flags, and shared Regular-M margins. It retains the precision of the original SVG control points when positioning each drawing. This restores the two-tone CoMaps logo in the app and widget, the transparent cutouts on route badges, and the width of the search clear button.

The iPhone regression checks all 192 authored weight and size variants across 55 app symbols and the widget logo. UIKit compares the two catalogs in 5,264 renderings per deployment target, covering all nine weights and three symbol scales, light and dark appearance, three display scales, rendering modes, and variable values. It compares size, baseline, alignment insets, and RGBA pixels. With cached bitmaps excluded on both sides, all 5,264 vector renderings matched Xcode 27.2 pixel for pixel. With complete catalogs, UIKit can use Xcode’s cached bitmap near standard point sizes. Xcode 26.6 also precomputes a medium-weight variant that Xcode 27.2 leaves to UIKit. The regression bounds these contour differences against measurements from the native catalogs.

CoMaps coverage

The pinned CoMaps revision now has checked-in inputs for all 146 Interface Builder owner/child/key combinations and all 17 asset selector combinations. This closes the previous 50 and seven fixture gaps. Both Ubuntu architectures compile all 78 XIBs, five storyboards, the main catalog, and the widget catalog.

The iPhone probe loads five reduced XIB/storyboard fixtures built separately with Xcode and SweetPad. It compares 84 UIKit observations covering button images and symbol configuration, text, colors, insets, WebKit playback, safe areas, adaptive constraints, and popover size. A separate native control verifies that removing the canvas position or simulated status bar marker leaves the compiled nib unchanged. The XIB root-size controls distinguish the iOS 15.6 device canvas from the authored frame used for iOS 17.

The asset probe compares 22 fixture renditions, 16 original app icon renditions, both icon property lists, and all decoded pixels of the default, dark, and tinted icons for iPhone and iPad. It exercises all 24 CoMaps SVG sets with a dark appearance and all 19 named colors at three display scales in light and dark. The SVG checks compare geometry and solid interiors. The authored fixture also compares complete rendered images, including the explicit 1× PDF.

The full comparison passed locally with Xcode 27.2 and on the hosted Xcode 26.6 runner for iOS 15.6 and 17.0 deployment targets. The hosted workflow used artifacts built on Ubuntu x64. Its sibling ARM64 job compiled the same source tree. Hosted UIKit results · Linux builds

@hyzyla
hyzyla marked this pull request as ready for review November 28, 2026 11:38
@hyzyla
hyzyla merged commit 89f52f8 into main Nov 28, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant