Awesome Open Source
Awesome Open Source

is-camera-on

Check if the built-in Mac camera is on

The camera is commonly known as FaceTime HD or iSight.

This module can be useful to check if the camera is already in use or notify you if it's turned on when you didn't intend it to be.

Requirements

  • macOS 10.11+
  • Xcode 11+
  • Swift 5.1+

Install

SwiftPM

.package(url: "https://github.com/sindresorhus/is-camera-on", from: "2.0.0")

Usage

import IsCameraOn

print(isCameraOn())
//=> true

Related


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
swift (6,639
macos (1,300
camera (205
swift-package-manager (83
swift-package (17

Find Open Source By Browsing 7,000 Topics Across 59 Categories