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

Feature Enhancement: Supply current popUp index parameter for lineGraph #256

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

xuzhiming
Copy link

Summary

supply current popUp index parameter for popUpSuffixForlineGraph and popUpPrefixForlineGraph

Feature Enhancement

This pull request enhance the following features:

  • #We sometimes may need know current popUp index when we display popUp suffix/prefix.

Notes

  • I have run and ensured that this pull request passes all XCTests

@@ -449,13 +449,13 @@ IB_DESIGNABLE @interface BEMSimpleLineGraphView : UIView <UIGestureRecognizerDel
/** The optional suffix to append to the popup report.
@param graph The graph object requesting the total number of points.
@return The suffix to append to the popup report. */
- (NSString *)popUpSuffixForlineGraph:(BEMSimpleLineGraphView *)graph;
- (NSString *)popUpSuffixForlineGraph:(BEMSimpleLineGraphView *)graph index:(NSUInteger)index;
Copy link
Owner

Choose a reason for hiding this comment

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

Please rename the method to - (NSString *)popUpSuffixForlineGraph:(BEMSimpleLineGraphView *)graph atIndex:(NSUInteger)index;.
The comment also needs to be updated.

@Boris-Em
Copy link
Owner

Hi @xuzhiming,
First of all, thanks a lot for your contribution! I added a few in line comments. Please address those so that we can merge your pull request.
Let me know if you have any questions!

@xuzhiming
Copy link
Author

ok, I'll address those issues soon.

…popUpPrefixForlineGraph.

remove awakeFromNib to avoid commonInit be called twice.
use the longestString index for popUp.
@xuzhiming
Copy link
Author

Hi @Boris-Em , please check the latest commit.

@Sam-Spencer
Copy link
Collaborator

This looks great! It is a breaking change. Could you deprecate the old methods?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants