Making the view nil to prevent dangling contrainst
This commit is contained in:
parent
18aca32b43
commit
adb415f72c
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user