mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
swiftformat now enforces newlines for ifs
This commit is contained in:
+6
-2
@@ -271,8 +271,12 @@ private struct PreviewView: UIViewControllerRepresentable {
|
||||
|
||||
private func previewItemTitle(for url: URL) -> String? {
|
||||
guard let type = UTType(filenameExtension: url.pathExtension) else { return view.title }
|
||||
if type.conforms(to: .image) { return L10n.a11yPhotoPreview }
|
||||
if type.conforms(to: .movie) || type.conforms(to: .video) { return L10n.a11yVideoPreview }
|
||||
if type.conforms(to: .image) {
|
||||
return L10n.a11yPhotoPreview
|
||||
}
|
||||
if type.conforms(to: .movie) || type.conforms(to: .video) {
|
||||
return L10n.a11yVideoPreview
|
||||
}
|
||||
return view.title
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user