You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently started building my own iOS app and trying to add Push Notifications particularly the Rich Push notifications.
I tried to use this example to show Carousel in Push Notification exactly as used in this project, it seems the Scrolling to next item is breaking in iOS 14.
I can see the scrollNextItem/scrollPreviousItem from the example are getting called but UICollectionView doesn't scroll to next/previous image using debugger.
Tested this with iOS 14.0.1 where the scroll to next/prev doesn't work, whereas this works fine with iOS 13.6.
Tried to add the UIPageControl and see if the scrolling works with ScrollView, but I couldn't see the PageControl itself in the UI.
var xPos: CGFloat
var yPos: CGFloat
let height: CGFloat = 30
let pageControl = UIPageControl()
pageControl.addTarget(self, action: #selector(self?.changePage(sender:)), for: .touchUpInside)
pageControl.hidesForSinglePage = true
pageControl.numberOfPages = 4
pageControl.currentPage = 0
xPos = (self.view.frame.width - width) / 2
yPos = (self.view.frame.height - height) - 10
pageControl.frame = CGRect(x: xPos, y: yPos, width: width, height: height)
self?.pageControl?.removeFromSuperview()
self?.pageControl = pageControl
Following are the attributes that I have for this view.
UIScrollView Attributes
And then using the scrollViewDidEndDecelerating delegate method.
Changing based on the user action in func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void)
I have recently started building my own iOS app and trying to add Push Notifications particularly the Rich Push notifications.
I tried to use this example to show Carousel in Push Notification exactly as used in this project, it seems the Scrolling to next item is breaking in iOS 14.
I can see the scrollNextItem/scrollPreviousItem from the example are getting called but UICollectionView doesn't scroll to next/previous image using debugger.
Tested this with iOS 14.0.1 where the scroll to next/prev doesn't work, whereas this works fine with iOS 13.6.
Tried to add the UIPageControl and see if the scrolling works with ScrollView, but I couldn't see the PageControl itself in the UI.
UIScrollView Attributes
And then using the scrollViewDidEndDecelerating delegate method.
Changing based on the user action in func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void)
Posted the same in SO here
Please help me figure out if something has changed in iOS 14 related to UICollectionView
The text was updated successfully, but these errors were encountered: