Skip to content

chore(lint): fix legacy_swiftui_aspect_ratio violations - #337

Merged
cassio-rossi merged 1 commit into
release/v5from
chore/swiftlint-aspect-ratio
Nov 11, 2026
Merged

cassio-rossi merged 1 commit into
release/v5from
chore/swiftlint-aspect-ratio

Conversation

@cassio-rossi

Copy link
Copy Markdown
Collaborator

CI SwiftLint (`validate-pr`) fails on `release/v5` with 4 `legacy_swiftui_aspect_ratio` violations, blocking unrelated PRs (e.g. #336).

Replaces `aspectRatio(contentMode:)` with `scaledToFit()` / `scaledToFill()` (equivalent behavior) in:

  • `Widget/Views/WidgetElementView.swift:45`
  • `SettingsLibrary/.../IconsView.swift:66`
  • `PodcastLibrary/.../PodcastImageView.swift:39, 57`

Verification

  • Project builds in Xcode
  • Local `swiftlint --strict`: 0 violations (local SwiftLint 0.65.0 did not flag these before the change either, so the CI result is not reproduced locally; confirm via the `validate-pr` check on this PR)
  • Tests not run; no logic change

🤖 Generated with Claude Code

…entMode:)

Satisfies the legacy_swiftui_aspect_ratio rule enforced by CI SwiftLint.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cassio-rossi
cassio-rossi merged commit 2d4082b into release/v5 Nov 11, 2026
1 of 2 checks passed
@cassio-rossi
cassio-rossi deleted the chore/swiftlint-aspect-ratio branch November 11, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant