Created
May 19, 2022 22:02
-
-
Save karenxpn/24f3508308cf5e7e35b3e277eac1cadf to your computer and use it in GitHub Desktop.
Simple usage of CameraXPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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