@@ -72,6 +72,9 @@ public struct APS: Encodable {
7272 /// Provide this key with a string value that represents the app-specific identifier for grouping notifications.
7373 public var threadId : String ?
7474
75+ // Provide this key with a value of the identifier of the window brought forward.
76+ public var targetContentId : String ?
77+
7578 /// Keys that uses for encoding and decoding.
7679 private enum CodingKeys : String , CodingKey {
7780 case alert
@@ -81,6 +84,7 @@ public struct APS: Encodable {
8184 case mutableContent = " mutable-content "
8285 case category
8386 case threadId = " thread-id "
87+ case targetContentId = " target-content-id "
8488 }
8589}
8690
@@ -128,6 +132,12 @@ public struct APSLocalizedAlert: Encodable {
128132 /// Variable string values to appear in place of the format specifiers in title-loc-key.
129133 public var titleLocArgs : [ String ] ?
130134
135+ /// The key to a subtitle string in the Localizable.strings file for the current localization.
136+ public var subtitleLocKey : String ?
137+
138+ /// Variable string values to appear in place of the format specifiers in subtitle-loc-key.
139+ public var subtitleLocArgs : [ String ] ?
140+
131141 /// If a string is specified, the system displays an alert that includes the Close and View buttons.
132142 public var actionLocKey : String ?
133143
@@ -148,6 +158,8 @@ public struct APSLocalizedAlert: Encodable {
148158 case body
149159 case titleLocKey = " title-loc-key "
150160 case titleLocArgs = " title-loc-args "
161+ case subtitleLocKey = " subtitle-loc-key "
162+ case subtitleLocArgs = " subtitle-loc-args "
151163 case actionLocKey = " action-loc-key "
152164 case locKey = " loc-key "
153165 case locArgs = " loc-args "
0 commit comments