Making the view nil to prevent dangling contrainst

This commit is contained in:
Subramaniam, Ramya 2024-06-21 12:17:48 +05:30
parent 18aca32b43
commit adb415f72c

View File

@ -307,6 +307,7 @@ open class Carousel: View {
pagingView?.removeFromSuperview()
bottomPin?.isActive = false
pagingView = nil
guard var pagingView = view else {
bottomPin = bottomAnchor.constraint(equalTo: collectionView.bottomAnchor)