EasyFlash
Makes using the flashlight on iOS easy!
?️ Installation
Install Using Swift Package Manager (Recommended Method)
- First open your project in Xcode and then for Xcode 12, navigate to File → Swift Packages → Add Package Dependency… or for Xcode 13, navigate to Files → Add Package
- Paste the repository URL (https://github.com/SkiingIsFun123/EasyFlash) and click the next button
- For version, verify it’s up to next major version
- Click finish
- You’re all set, and thank you for using EasyFlash!
? Code Examples
? flashOn
Turns on the flashlight.
Import EasyFlash
EasyFlash.flashOn()
? flashOff
Turns off the flashlight.
Import EasyFlash
EasyFlash.flashOff()