Skip to content

Instantly share code, notes, and snippets.

@karenxpn
Created May 19, 2022 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karenxpn/24f3508308cf5e7e35b3e277eac1cadf to your computer and use it in GitHub Desktop.
Save karenxpn/24f3508308cf5e7e35b3e277eac1cadf to your computer and use it in GitHub Desktop.
Simple usage of CameraXPN
//
// ContentView.swift
// CustomCameraApp
//
// Created by Karen Mirakyan on 09.05.22.
//
import SwiftUI
import CameraXPN
struct ContentView: View {
var body: some View {
CameraXPN(action: { url, data in
print(url)
print(data.count)
}, font: .subheadline, permissionMessgae: "Permission Denied")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment