swiftformat now enforces newlines for ifs

This commit is contained in:
Mauro Romito
2026-06-19 13:46:46 +02:00
committed by Mauro
parent f32b9eeb26
commit 3aedd0ccff
17 changed files with 87 additions and 29 deletions
@@ -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
}