Skip to content

Commit

Permalink
add init()
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0c committed Jan 15, 2020
1 parent a8cc7af commit bfc0c15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RDImageViewerController/Classes/RDImageViewerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ extension UISlider

open class SinglePageBehaviour: HudBehaviour, SliderBehaviour, PagingBehaviour
{
public init() {}

open func updateLabel(label: UILabel, pagingView: PagingView, denominator: Int) {
label.text = "\(pagingView.currentPageIndex + 1)/\(denominator)"
}
Expand Down Expand Up @@ -66,6 +68,8 @@ open class SinglePageBehaviour: HudBehaviour, SliderBehaviour, PagingBehaviour

open class DoubleSpreadPageBehaviour: HudBehaviour, SliderBehaviour, PagingBehaviour
{
public init() {}

open func updateLabel(label: UILabel, pagingView: PagingView, denominator: Int) {
var pageString = pagingView.visiblePageIndexes.sorted().map({ (index) -> String in
return String(index + 1)
Expand Down

0 comments on commit bfc0c15

Please sign in to comment.