Skip to content

Commit

Permalink
Update ScreenCapture.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Sep 21, 2024
1 parent 6f95c8b commit 0af590d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ice/Utilities/ScreenCapture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ enum ScreenCapture {
/// Requests screen capture permissions.
static func requestPermissions() {
if #available(macOS 15.0, *) {
// CGRequestScreenCaptureAccess() is broken on macOS 15. Using one of SCShareableContent's accessors
// requires screen capture permissions, and triggers a request if the user doesn't have them.
// CGRequestScreenCaptureAccess() is broken on macOS 15. SCShareableContent requires
// screen capture permissions, and triggers a request if the user doesn't have them.
SCShareableContent.getWithCompletionHandler { _, _ in }
} else {
CGRequestScreenCaptureAccess()
Expand Down

0 comments on commit 0af590d

Please sign in to comment.