macos: replace legacy aspectRatio with scaledToFit in clipboard preview (#14006)

Fixes the swiftlint legacy_swiftui_aspect_ratio violation.

### AI Disclosure

By Claude, but it's really simple.
This commit is contained in:
Mitchell Hashimoto
2026-08-25 05:41:28 -07:00
committed by GitHub

View File

@@ -71,7 +71,7 @@ struct ClipboardConfirmationView: View {
if let previewImage {
Image(nsImage: previewImage)
.resizable()
.aspectRatio(contentMode: .fit)
.scaledToFit()
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding(.horizontal)
} else {