Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juniperphoton/captureeventinteraction
https://github.com/juniperphoton/captureeventinteraction
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/juniperphoton/captureeventinteraction
- Owner: JuniperPhoton
- Created: 2024-06-23T11:38:18.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T17:03:35.000Z (2 months ago)
- Last Synced: 2024-11-18T18:26:20.326Z (2 months ago)
- Language: Swift
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CaptureEventInteraction
This Swift package contains a class `CaptureEventInteraction` to help you interact with the Volumn Up and Volumn Down buttons in the camera app.
On iOS 17.2 or above, it uses ``AVCaptureEventInteraction`` otherwise it uses the external framework of `VolumeButtonHandler` to handle the event.
> When using ``AVCaptureEventInteraction`` on iOS 17.2, the events will be triggered only if the camera session is running.
NOTE:
> There is a [new API](https://developer.apple.com/documentation/SwiftUI/View/onCameraCaptureEvent(isEnabled:primaryAction:secondaryAction:)) on iOS 18. Prefer to use that API on iOS 18 or above.
## Documentation
Please visit the Swift DocC documentation here:
https://juniperphoton.github.io/CaptureEventInteraction/documentation/captureeventinteraction/