Button {
isPresented.toggle()
} label: {
Text("Camera")
}
.camera(isPresented: $isPresented,
photoData: $photoData)
Starting from Xcode 11, the Swift Package Manager is integrated, which is very convenient to use. Camera_SwiftUI also supports integration via Swift Package Manager.
Select File > Swift Packages > Add Pacakage Dependency
in Xcode's menu bar, and enter in the search bar
https://github.com/zjinhu/Camera_SwiftUI
, you can complete the integration
Camera_SwiftUI also supports manual Install, just drag the Camera_SwiftUI folder in the Sources folder into the project that needs to be installed
hu,
Camera_SwiftUI is available under the MIT license. See the LICENSE file for more info.