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.
- Host: GitHub
- URL: https://github.com/swiftuiux/permission-swift-example
- Owner: swiftuiux
- License: mit
- Created: 2024-06-30T10:38:45.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-27T11:37:41.000Z (7 months ago)
- Last Synced: 2024-11-28T18:41:36.666Z (7 months ago)
- Topics: ios, permission, swift, swiftui-example
- Language: Swift
- Homepage:
- Size: 740 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
## License
This project is licensed under the MIT License. See the LICENSE file for more details.