You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: SwiftUI Image crops for fit "fill" and "none" instead of following CSS object-fit #4096
The Basic Catalog says Image.fit follows CSS object-fit, with fill as the default (catalog.json). In SwiftUI, A2UIImage maps fill to aspect-fill, which crops, and none falls into the same branch (A2UIImage.swift). scaleDown is mapped to plain aspect-fit, so it also scales small images up. The avatar and header variants ignore fit.
a2ui_flutter maps all five values to BoxFit by name (image.dart).
A related question: web_core's Image (Image.ts) and the Angular v0.9 Image (image.component.ts) fall back to cover when fit is missing, while the catalog and Flutter use fill. I'll follow the catalog in SwiftUI. Should the web renderers change too?
Activity