File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 55
66import Foundation
77import UIKit
8+ import SwiftUI
89import Alamofire
910import NextcloudKit
1011import SVGKit
@@ -467,12 +468,22 @@ class NCContextMenu: NSObject {
467468 image: iconImage
468469 ) { _ in
469470 Task {
470- await NextcloudKit . shared. sendRequestAsync ( account: metadata. account,
471- fileId: metadata. fileId,
472- filePath: metadata. path,
473- url: item. url,
474- method: item. method,
475- params: item. params)
471+ let response = await NextcloudKit . shared. sendRequestAsync ( account: metadata. account,
472+ fileId: metadata. fileId,
473+ filePath: metadata. path,
474+ url: item. url,
475+ method: item. method,
476+ params: item. params)
477+
478+ await MainActor . run {
479+ let viewer = DeclarativeUIViewer (
480+ rows: [ . init( element: " URL " , title: " Test " , urlString: " /test " ) ] ,
481+ baseURL: " test.com "
482+ )
483+ let hosting = UIHostingController ( rootView: viewer)
484+ hosting. modalPresentationStyle = . pageSheet
485+ self . viewController. present ( hosting, animated: true )
486+ }
476487 }
477488 }
478489
You can’t perform that action at this time.
0 commit comments