Images always use `.scaledToFit`
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 330
- Forks
- 76
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 1
Description
When using SwiftUI Image, you can use .scaledToFit, .scaledToFill, or use no modifier to disable scaling.
SkipUI seems to always use .scaledToFit. In ImagePlayground in SkipUI 1.53.1, all three of the variation images look the same. (It does work if you use .aspectRatio() with a contentMode.)
| iOS | Android |
|---|---|
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the ImagePlayground example in SkipUI 1.53.1 and comparing its three variation images on iOS and Android. Check how Image handles scaledToFit, scaledToFill, no modifier, and aspectRatio(contentMode:); done means the three modes produce distinct sizing behavior on both platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100