Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Refactor public current page retrieving by using a `public private(se…
Browse files Browse the repository at this point in the history
…t)` property
  • Loading branch information
Hans Seiffert committed Sep 5, 2016
1 parent 34228a6 commit 4eea438
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UICo
var pages: [String]!
var totalPages: Int!
var tempFragment: String?
var currentPage: FolioReaderPage?
public private(set) var currentPage: FolioReaderPage?
var animator: ZFModalTransitionAnimator!
var pageIndicatorView: FolioReaderPageIndicator?
var pageIndicatorHeight: CGFloat = 20
Expand Down Expand Up @@ -781,10 +781,6 @@ public class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UICo
})
}
}

public func getCurrentPage() -> FolioReaderPage? {
return self.currentPage
}

// MARK: - Audio Playing

Expand Down

0 comments on commit 4eea438

Please sign in to comment.