Skip to content

CaptureFolderManager access issue #1

@Raghvender1205

Description

@Raghvender1205

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()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions