Comment on How to replicate UIImageView's `scaleAspectFill` for Images inside a custom Layout? @DTS Engineer – This doesn't work, I'm afraid. Adding the .aspectRatio(1.0, contentMode: .fill) makes no difference – I assume because we're doing .scaledToFill() before, which is the same as doing .aspectRatio(nil, contentMode: .fill) UI Frameworks SwiftUI Jun ’24