Skip to content

zjinhu/Camera_SwiftUI

Repository files navigation

Camera_SwiftUI

SPM Xcode 14.0+ iOS 14.0+ Swift 5.0+ SwiftUI 3.0+

Example

            Button {
                isPresented.toggle()
            } label: {
                Text("Camera")
            }
            .camera(isPresented: $isPresented,
                    photoData: $photoData)

Usage

Install

Swift Package Manager

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

Manual Install

Camera_SwiftUI also supports manual Install, just drag the Camera_SwiftUI folder in the Sources folder into the project that needs to be installed

Author

hu,

More tools to speed up APP development

ReadMe Card

ReadMe Card

ReadMe Card

ReadMe Card

ReadMe Card

许可

Camera_SwiftUI is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published