Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions CodeEdit/Features/Editor/Views/ImageFileView.swift

This file was deleted.

11 changes: 2 additions & 9 deletions CodeEdit/Features/Editor/Views/NonTextFileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,8 @@ struct NonTextFileView: View {
var body: some View {
Group {
if let fileURL = fileDocument.fileURL {

if let utType = fileDocument.utType {
if utType.conforms(to: .image) {
ImageFileView(fileURL)
} else if utType.conforms(to: .pdf) {
PDFFileView(fileURL)
} else {
AnyFileView(fileURL)
}
if let utType = fileDocument.utType, utType.conforms(to: .pdf) {
PDFFileView(fileURL)
} else {
AnyFileView(fileURL)
}
Expand Down