Skip to content

Commit 13aef9c

Browse files
Missed these two button constants.
1 parent 61f5196 commit 13aef9c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

swift-sdk/ITBConsts.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public extension AnyHashable {
123123
public static let ITBL_BUTTON_REQUIRES_UNLOCK = "requiresUnlock"
124124
public static let ITBL_BUTTON_INPUT_TITLE = "inputTitle"
125125
public static let ITBL_BUTTON_INPUT_PLACEHOLDER = "inputPlaceholder"
126+
public static let ITBL_BUTTON_ACTION = "action"
126127
}
127128

128129
@objcMembers public class ITBConsts : NSObject {

swift-sdk/Internal/IterableAppIntegrationInternal.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,13 @@ struct IterableAppIntegrationInternal {
228228
return nil
229229
}
230230
let foundButton = buttons.first { (button) -> Bool in
231-
guard let buttonIdentifier = button[ITBL_BUTTON_IDENTIFIER] as? String else {
231+
guard let buttonIdentifier = button[.ITBL_BUTTON_IDENTIFIER] as? String else {
232232
return false
233233
}
234234
return buttonIdentifier == actionIdentifier
235235
}
236236

237-
return foundButton?[ITBL_BUTTON_ACTION] as? [AnyHashable : Any]
237+
return foundButton?[.ITBL_BUTTON_ACTION] as? [AnyHashable : Any]
238238
}
239239

240240
@available(iOS 10.0, *)

0 commit comments

Comments
 (0)