Skip to content

Commit d15c2a0

Browse files
authored
Merge pull request #571 from Iterable/jay/MOB-4689-set-id-public
[MOB-4689] add set functions into public space
2 parents 537501e + 201c032 commit d15c2a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

swift-sdk/IterableAPI.swift

+8
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ public final class IterableAPI: NSObject {
123123

124124
// MARK: - SDK
125125

126+
public static func setEmail(_ email: String?, _ authToken: String? = nil) {
127+
internalImplementation?.setEmail(email, authToken: authToken)
128+
}
129+
130+
public static func setUserId(_ userId: String?, _ authToken: String? = nil) {
131+
internalImplementation?.setUserId(userId, authToken: authToken)
132+
}
133+
126134
/// Handle a Universal Link
127135
///
128136
/// For Iterable links, it will track the click and retrieve the original URL,

0 commit comments

Comments
 (0)