Repository navigation
Compile CoMaps resources and preserve asset variants on Linux - #368
Merged
Merged
Conversation
hyzyla
marked this pull request as ready for review
November 28, 2026 11:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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