Skip to content

Commit

Permalink
SONIC-2126: BPKCarousel page indicator should update when delegate = …
Browse files Browse the repository at this point in the history
…nil (#1836)

* SONIC-2126: BPKCarousel page indicator should update when delegate = nil

* SONIC-2126L Revert the the change to keep the delegate didSet block
  • Loading branch information
dennis-li-skyscanner committed Dec 8, 2023
1 parent a46af3d commit f654c11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Backpack/Carousel/Classes/BPKCarousel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public final class BPKCarousel: UIView {
internalCarousel = BPKInternalCarousel(pageIndicator: pageIndicator)
super.init(frame: .zero)

internalCarousel.delegate = self
internalCarousel.translatesAutoresizingMaskIntoConstraints = false
addSubview(internalCarousel)
NSLayoutConstraint.activate([
Expand Down

0 comments on commit f654c11

Please sign in to comment.