Repository navigation
docs: Correct the 6.x image asset and SVG pages - #25546
MartinZikmund merged 4 commits into
Conversation
The table mixed renderers and was out of date: it had rows for the removed native macOS renderer, presented the native Android and iOS rows as current, claimed GIF animation only on WebAssembly, and said Android loads BMP, HEIC, WebP and PDF assets, which the native renderer can't load from ms-appx. Use one row for the Skia renderer and label the native-renderer rows as 6.x only, so the same table holds for 6.x and 7.0. The cells were checked against the code on 6.7, 6.8 and master, at runtime on 6.7.30 (desktop, WebAssembly in Chrome, Android emulator), and with decoder probes in Safari and the iOS simulator.
These sections described behavior 6.x doesn't have: - The custom qualifier listed a uwp value set under WINDOWS_UWP, which no 6.x head defines. Only RetargetAssets reads the qualifier, on Android and UIKit (iOS, tvOS, Mac Catalyst) heads. - ImageSource.DefaultImageLoader only matters for the native Android renderer, and the Uno.Sdk now references Uno.UniversalImageLoader itself instead of nventive.UniversalImageLoader. - bundle:// URIs aren't special-cased by ImageSource, so they fall through to the download path and fail.
svg.md said the Svg feature is enabled by default on Desktop and WebAssembly. The Uno.Sdk never adds it, so on 6.x an SVG renders on those targets only after Svg is added to UnoFeatures. Only Windows and the native WebAssembly renderer don't need it.
The footnote said every target uses the Skia renderer from 7.0, but the Windows App SDK head renders with WinUI. Use the same wording as the master table so the two stay aligned.
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25546/docs/index.html |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25546/docs/index.html |
|
This pull request is merged. |
MartinZikmund
left a comment
There was a problem hiding this comment.
Thanks @mikernet, this is a careful cleanup. I checked the corrected claims against servicing/6.8, and they hold:
- The Uno.Sdk never adds
Svgimplicitly.Uno.Implicit.Packages.ProjectSystem.Uno.targetsonly referencesUno.WinUI.SvgandSvg.SkiawhenUnoFeaturescontainssvg, and skips them for the native WebAssembly renderer. RetargetAssetsonly handlesuikitandandroid. The iOS and Android converters read thecustomqualifier, and anything other thanios/androidis rejected. NoWINDOWS_UWPbranch is needed for 6.x.Uno.UniversalImageLoaderis referenced only whenskiarendereris absent on Android.ImageSource.DefaultImageLoaderlives inImageSource.Android.cs.bundle://has no handler. Onlyms-appxgoes throughInitFromResource, so the section was right to go.- The native Android renderer only packages
.png,.jpg,.jpegand.gifas images (RetargetAssets.cs), which matches footnote 5.
I couldn't check the runtime-only cells (browser decoders, per-format Skia support) from the code, so I'm taking your test results for those. Optional: since the live site matches release/stable/6.7, a backport there would help.
GitHub Issue: N/A (documentation only)
PR Type:
📚 Documentation content changes
What changed? 🚀
This PR fixes the 6.x docs for image assets and SVG:
ms-appx:///.svg.md: the page said theSvgfeature is enabled by default on Desktop and WebAssembly. The Uno.Sdk never adds it, so every target needs it except Windows and the native WebAssembly renderer.working-with-assets.md:customqualifier table drops itsuwpvalue and the#if WINDOWS_UWPsnippet; no 6.x head definesWINDOWS_UWP. It now says where the qualifier is actually read.ImageSource.DefaultImageLoaderis marked as native-Android-only, and it now names theUno.UniversalImageLoaderpackage that the Uno.Sdk references.bundle://section is removed.ImageSourcedoesn't handle that scheme, so the URI falls through to the download path and fails.The cells were verified on 6.7.30, 6.8 and master:
Svg, where no SVG renders.The live docs site appears to match
release/stable/6.7, where these pages are identical. Should I also open this againstrelease/stable/6.7?PR Checklist ✅
Screenshots Compare Test Runresults.