mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-25 16:41:44 +00:00
macOS: fix swiftlint warnings (#13986)
swiftlint 0.63.3 introduced a new rule called
[`legacy_swiftui_aspect_ratio`](76363aa4d7/CHANGELOG.md (L314))
<img width="509" height="451" alt="image"
src="https://github.com/user-attachments/assets/1ff6f593-ce8a-493e-a241-e9ae418746ee"
/>
This commit is contained in:
@@ -39,6 +39,6 @@ struct CyclingIconView: View {
|
||||
|
||||
iconImage
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.scaledToFit()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ struct SecureInputOverlay: View {
|
||||
|
||||
Image(systemName: "lock.shield.fill")
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.scaledToFit()
|
||||
.frame(width: 25, height: 25)
|
||||
.foregroundColor(.primary)
|
||||
.padding(5)
|
||||
|
||||
Reference in New Issue
Block a user