mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix some SwiftLint warnings.
This commit is contained in:
@@ -423,7 +423,7 @@ struct LoadableImage_Previews: PreviewProvider, TestablePreview {
|
||||
|
||||
private extension View {
|
||||
func layout(title: String, hideTimelineMedia: Bool = false) -> some View {
|
||||
aspectRatio(contentMode: .fit)
|
||||
scaledToFit()
|
||||
.clipShape(RoundedRectangle(cornerRadius: 20))
|
||||
.overlay(alignment: .bottom) {
|
||||
Text(title)
|
||||
|
||||
@@ -23,7 +23,7 @@ struct OverridableAvatarImage: View {
|
||||
AsyncImage(url: overrideURL) { image in
|
||||
image
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fill)
|
||||
.scaledToFill()
|
||||
} placeholder: {
|
||||
ProgressView()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user