Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CaptureFolderManager access issue #1

Open
Raghvender1205 opened this issue Dec 11, 2023 · 1 comment
Open

CaptureFolderManager access issue #1

Raghvender1205 opened this issue Dec 11, 2023 · 1 comment

Comments

@Raghvender1205
Copy link

Hi, I wanted to use Object Capture API for my iOS application. I found your Swift Package and imported it. But I wanted to access a particular file CaptureFolderManager. I want to use the Images it stores in the Images/ folder during the Photogrammetry Session. I can't access the CaptureFolderManager.

image

This is the Swift code

//
//  ContentView.swift
//  3DMapp
//
//  Created by Raghvender on 05/12/23.
//

import SwiftUI
import USDZScanner


struct ContentView: View {
    @State var captureFolderManager: CaptureFolderManager? = CaptureFolderManager()
    @State var isScanObjectPresenting = false
    @State var url: URL?
    
    var body: some View {
        VStack {
            if let url {
            }
        }
        .sheet(isPresented: $isScanObjectPresenting, content: {
            USDZScanner { url in
                self.url = url
                isScanObjectPresenting = false
            }
        })
        .onAppear {
            isScanObjectPresenting = true
        }
    }
}

#Preview {
    ContentView()
}
@Raghvender1205
Copy link
Author

Any help will be much appreciated @alfianlosari 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant