skiptools / skiptools/skip-ui

Images always use `.scaledToFit`

Open
#422 1 comment 0 reactions 0 assignees View on GitHub

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
Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.