Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ final class ImageBannerSectionCell: UICollectionViewCell {
controller.preferredIndicatorImage = UIImage(systemName: "circle")
controller.preferredCurrentPageIndicatorImage = UIImage(systemName: "circle.fill")
controller.isUserInteractionEnabled = false
controller.hidesForSinglePage = false
return controller
}()

Expand Down Expand Up @@ -214,9 +215,15 @@ extension ImageBannerSectionCell: Inputable {
func injection(with input: Input) {
if imageSection.isEmpty {
pageControl.numberOfPages = input.imagePaths.count
let stopButtonLeadingOffset = input.imagePaths.count == 3 ? -40 : input.imagePaths.count == 2 ? -36 : 0
stopButtonLeadingConstraints?.update(offset: stopButtonLeadingOffset)
playButtonLeadingConstraints?.update(offset: stopButtonLeadingOffset)
if #available(iOS 18.3, *) {
let stopButtonLeadingOffset = -26
stopButtonLeadingConstraints?.update(offset: stopButtonLeadingOffset)
playButtonLeadingConstraints?.update(offset: stopButtonLeadingOffset)
} else {
let stopButtonLeadingOffset = input.imagePaths.count == 3 ? -40 : input.imagePaths.count == 2 ? -36 : 0
stopButtonLeadingConstraints?.update(offset: stopButtonLeadingOffset)
playButtonLeadingConstraints?.update(offset: stopButtonLeadingOffset)
}
let datas = zip(input.imagePaths, input.idList)
let backContents = datas.suffix(1)
let frontContents = datas.prefix(1)
Expand Down