An open API service indexing awesome lists of open source software.

https://github.com/swiftuiux/permission-swift-example

This repository contains a SwiftUI example project demonstrating how to handle camera permissions and scanning functionality in an iOS application. The project uses the grand access library to manage permissions and provides a customizable button to trigger the scanning process.
https://github.com/swiftuiux/permission-swift-example

ios permission swift swiftui-example

Last synced: 7 months ago
JSON representation

This repository contains a SwiftUI example project demonstrating how to handle camera permissions and scanning functionality in an iOS application. The project uses the grand access library to manage permissions and provides a customizable button to trigger the scanning process.

Awesome Lists containing this project

README

        

# Permission SwiftUI Example

This project is a SwiftUI example demonstrating how to handle camera permission and scanning functionality in an iOS application. The project utilizes the `grand_access` library to manage permissions.

This example is created to demonstrate the usage of the [grand access](https://github.com/swiftuiux/grand-access) library.

## Features

- [x] Request camera permission using the [grand_access](https://github.com/swiftuiux/grand-access) library.
- [x] Display an alert if the camera permission is not granted.
- [x] Present a full-screen scanner view when permission is granted.
- [x] Customize the button appearance with various properties like system image, font type, weight, width, and tint color.

![simulate locations](https://github.com/swiftuiux/permission-swift-example/blob/main/img/grand_access.gif)

## License

This project is licensed under the MIT License. See the LICENSE file for more details.