// // NCUploadAssetsView.swift // Nextcloud // // Created by Marino Faggiana on 03/06/24. // Copyright © 2024 Marino Faggiana. All rights reserved. // import SwiftUI import NextcloudKit struct NCUploadAssetsView: View { @ObservedObject var model: NCUploadAssetsModel @State private var showSelect = false @State private var showUploadConflict = false @State private var showQuickLook = false @State private var showRenameAlert = false @State private var renameError = "" @State private var renameFileName: String = "" @State private var renameIndex: Int = 0 @State private var index: Int = 0 var metadata: tableMetadata? let gridItems: [GridItem] = [GridItem()] let fileNamePath = NSTemporaryDirectory() + "Photo.jpg" let utilityFileSystem = NCUtilityFileSystem() @Environment(\.presentationMode) var presentationMode var body: some View { NavigationView { ZStack(alignment: .top) { List { Section(footer: Text(NSLocalizedString("_modify_image_desc_", comment: ""))) { ScrollView(.horizontal) { LazyHGrid(rows: gridItems, alignment: .center, spacing: 10) { ForEach(0..