From 429aac298bf346477d652116b162213fada03541 Mon Sep 17 00:00:00 2001 From: Vincent Peng Date: Fri, 9 Oct 2026 11:52:27 +1100 Subject: [PATCH] Replace aspectRatio(contentMode:) with scaledToFit() SwiftLint 0.65 adds legacy_swiftui_aspect_ratio and CI brew-installs the latest release, so this pre-existing call now fails the lint job on every PR. scaledToFit() is the identical shorthand. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- Sources/MarkdownText/UI/Images/PinchZoomView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/MarkdownText/UI/Images/PinchZoomView.swift b/Sources/MarkdownText/UI/Images/PinchZoomView.swift index 01c232e1..ae3a5341 100644 --- a/Sources/MarkdownText/UI/Images/PinchZoomView.swift +++ b/Sources/MarkdownText/UI/Images/PinchZoomView.swift @@ -38,7 +38,7 @@ struct PinchZoomView: View { GeometryReader { geometry in image .resizable() - .aspectRatio(contentMode: .fit) + .scaledToFit() .scaleEffect(scale * activeScale) .offset(offset) .background(