Skip to content

Commit

Permalink
Merge pull request #25 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release 0.2.3
  • Loading branch information
akashvercetti authored Oct 28, 2022
2 parents 46774de + f929a4e commit 345896d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Change Log
==========
Version 0.2.3 (28 October, 2022)
-----------------------------------------------
- Fixes a potential crash for the content slider template.

Version 0.2.2 (20 October, 2022)
-----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion CTNotificationContent.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CTNotificationContent"
s.version = "0.2.2"
s.version = "0.2.3"
s.summary = "A Notification Content Extension class to display custom content interfaces for iOS 10 push notifications"
s.homepage = "https://github.com/CleverTap/CTNotificationContent"
s.license = "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ import UserNotificationsUI
}

func moveSlider(direction: Int) {
guard let _ = getParentViewController() else {
timer?.invalidate()
timer = nil
return
}
currentItemView.removeFromSuperview()

currentItemIndex = currentItemIndex + direction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ fileprivate enum Constants {
}

func moveSlider(direction: Int) {
guard let _ = getParentViewController() else {
stopAutoPlay()
return
}
currentItemView.removeFromSuperview()

currentItemIndex = currentItemIndex + direction
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 345896d

Please sign in to comment.