diff --git a/Sources/StreamDeck/Support Models/PluginManifest.swift b/Sources/StreamDeck/Support Models/PluginManifest.swift index a977bf7..dccb6d0 100644 --- a/Sources/StreamDeck/Support Models/PluginManifest.swift +++ b/Sources/StreamDeck/Support Models/PluginManifest.swift @@ -497,7 +497,7 @@ public struct PluginSoftware: Codable, ExpressibleByStringLiteral { /// In order to do so, the ApplicationsToMonitor object should contain for each platform an array specifying the list of application identifiers to monitor. /// /// - Note: On macOS the application bundle identifier is used while the exe filename is used on Windows. -public struct ApplicationsToMonitor: Codable { +public struct ApplicationsToMonitor: Codable, ExpressibleByArrayLiteral { /// Mac applications to monitor public let mac: [String] @@ -510,6 +510,14 @@ public struct ApplicationsToMonitor: Codable { self.mac = mac self.windows = windows } + + /// Initialize new applications to monitor. + /// + /// - Note: Using the array literal will set the same applications to both macOS and Windows. + /// - Parameter elements: The applications to monitor. + public init(arrayLiteral elements: String...) { + self.init(mac: elements, windows: elements) + } } /// Preconfigured plugin profiles.