Skip to content

Commit e2a8cd3

Browse files
Add unavailable attribute to spawnInApp method to get better error message.
1 parent 2c94dc4 commit e2a8cd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

swift-sdk/IterableAPI.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@ public final class IterableAPI : NSObject {
358358
}
359359

360360
//MARK: In-App Notifications
361-
361+
@available(*, unavailable, message: "In-app messages are automatically shown by SDK now. Please check our migration guide here https://github.com/iterable/swift-sdk/#migrating-in-app-messages-from-the-previous-version-of-the-sdk.")
362+
public static func spawnInAppNotification(_ callbackBlock:ITEActionBlock?) {
363+
}
364+
362365
/**
363366
Deprecated. Gets the list of InAppMessages from the server.
364367

0 commit comments

Comments
 (0)