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

Create variable hidePageIndicator to hide page indicator. #196

Merged
merged 5 commits into from
Jan 10, 2017
Merged

Create variable hidePageIndicator to hide page indicator. #196

merged 5 commits into from
Jan 10, 2017

Conversation

EmersonCarpes
Copy link
Member

@EmersonCarpes EmersonCarpes commented Dec 20, 2016

How can I disable PageIndicator #185

@EmersonCarpes EmersonCarpes changed the title How can I disable PageIndicator #185 Create variable hidePageIndicator to hide page indicator. Dec 20, 2016
@hebertialmeida hebertialmeida self-assigned this Dec 20, 2016
@hebertialmeida hebertialmeida self-requested a review December 20, 2016 19:48
Copy link
Member

@hebertialmeida hebertialmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, thank you for your contribution. Just requested few changes on your code.

@@ -45,4 +45,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 591559c46a2b0a49e687795b8ae46fadbddf8fd4

COCOAPODS: 1.1.1
COCOAPODS: 1.2.0.beta.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not use the beta version for now, I think it is better to keep 1.1.1 which is the current stable.

let pagesRemaining = FolioReader.needsRTLChange ? totalPages-(totalPages-page+1) : totalPages-page

pagesLabel.isHidden = hidePageIndicator
Copy link
Member

@hebertialmeida hebertialmeida Dec 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think here is the best place to hide that, because you are inside the page indicator.

Probably the best option is not to alloc and add the page indicator as subview, you can easily do that on viewDidLoad of the FolioReaderCenter.swift on line 166, where the page indicator is created. Just check for hidePageIndicator there.

This way the PageIndicator background will also be hidden.

@EmersonCarpes
Copy link
Member Author

I believe that's all right now, could you check please?

Copy link
Member

@hebertialmeida hebertialmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less is more 🎉

@hebertialmeida hebertialmeida merged commit 6ee39d2 into FolioReader:master Jan 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants