Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Objective-c compatible for turning off drag in X and Y Axis separately #3421

Merged
merged 1 commit into from Apr 25, 2018
Merged

Add Objective-c compatible for turning off drag in X and Y Axis separately #3421

merged 1 commit into from Apr 25, 2018

Conversation

lennonhe
Copy link
Contributor

Goals ⚽

Currently, turning off drag in X and Y Axis separately is only available for Swift.
This PR adds objective-c compatible for enabling/disabling drag in either axis separately.

Implementation Details 🚧

Add @objc tag for dragXEnabled, dragYEnabled properties.

@codecov-io
Copy link

codecov-io commented Apr 25, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@6b730a0). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3421   +/-   ##
=========================================
  Coverage          ?   29.21%           
=========================================
  Files             ?      117           
  Lines             ?    13303           
  Branches          ?        0           
=========================================
  Hits              ?     3886           
  Misses            ?     9417           
  Partials          ?        0
Impacted Files Coverage Δ
Source/Charts/Charts/BarLineChartViewBase.swift 26.53% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b730a0...43cab6c. Read the comment docs.

@jjatie jjatie merged commit e1c4f58 into ChartsOrg:master Apr 25, 2018
@lennonhe lennonhe deleted the dragXYEnabled-objc-compatiable branch April 25, 2018 10:48
@liuxuan30
Copy link
Member

@jjatie is this a regression that we forgot to add @objc for these two?

@jjatie
Copy link
Collaborator

jjatie commented May 3, 2018

@liuxuan30 no, not a regression. Originally you couldn't turn of x & y independently. When that feature was added, it was never exposed to objective-c

FreddyZeng added a commit to FreddyZeng/Charts that referenced this pull request May 11, 2018
* 'master' of https://github.com/danielgindi/Charts:
  Fix broken demo link in readme (ChartsOrg#3440)
  update candle chart view options in demo project to toggle showing candle bar (ChartsOrg#3424)
  add seperator set drag for x axis and y axis for Objective-c (ChartsOrg#3421)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants