Skip to content

Commit

Permalink
Add isVisible to StreamDeckSimulator (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor authored Oct 30, 2024
1 parent 7b02f04 commit 929495b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/StreamDeckSimulator/StreamDeckSimulator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public final class StreamDeckSimulator {
return windowScene?.first { $0.activationState == .foregroundActive }
}

/// Returns whether the Stream Deck simulator overlay is visible.
public static var isVisible: Bool {
!(shared.window?.isHidden ?? true)
}

/// Shows a Stream Deck simulator overlay in the current scene.
///
/// The overlay is contained in a new UIWindow. You will still be able to interact with your application UI.
Expand Down

0 comments on commit 929495b

Please sign in to comment.