Consolidate images and files

This commit is contained in:
Christoph Hagen
2024-12-09 12:18:55 +01:00
parent 394cf7a2e4
commit 4f08526978
77 changed files with 1970 additions and 1619 deletions

View File

@@ -57,7 +57,7 @@ struct PostImagesView: View {
}
}
private func shiftLeft(_ image: ImageResource) {
private func shiftLeft(_ image: FileResource) {
guard let index = post.images.firstIndex(of: image) else {
return
}
@@ -67,7 +67,7 @@ struct PostImagesView: View {
post.images.swapAt(index, index - 1)
}
private func shiftRight(_ image: ImageResource) {
private func shiftRight(_ image: FileResource) {
guard let index = post.images.firstIndex(of: image) else {
return
}
@@ -77,7 +77,7 @@ struct PostImagesView: View {
post.images.swapAt(index, index + 1)
}
private func remove(_ image: ImageResource) {
private func remove(_ image: FileResource) {
guard let index = post.images.firstIndex(of: image) else {
return
}