-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Conforms to Swift 3 - Xcode 8 beta 6 #1342
Conversation
@liuxuan30 there could be a few errors in this. I would go over with a fine-tooth comb. I noticed my Pie chart hole is no longer transparent. Looking into that |
are you saying there are issues with the library or xcode beta? |
@liuxuan30 No the changes introduced because of beta 6 might have caused some small errors. I noticed my pie chart hole is no longer transparent for example. Not sure if this is related to the changes or from before. All I'm saying is we should go through this before merging it. PS By errors I don't mean it wont compile. There could be some copy/paste mistakes |
well.. I assume the conversion tool will take care of all of them. Why you said copy/paste mistakes? What and where needs you manual copy? :) Downloading beta 6... |
I do most of my changes manually to make sure its the intended change and for example |
@@ -43,7 +43,7 @@ public class CandleStickChartRenderer: LineScatterCandleRadarChartRenderer | |||
} | |||
} | |||
|
|||
private var _shadowPoints = [CGPoint](repeating: CGPoint(), count: 4) | |||
private var _shadowPoints = [CGPoint](repeating: CGPoint(), count: 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liuxuan30 this is a mistake. Surprising since no change needed to be made on that line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
such changes should be included I guess, if not converted by Xcode 8. I would only use the conversion tool to do the job, since it's all about swift 3.0, not about bugs or issues. If you manually changed something, with so many diff in one PR, it's hard to find out.
Anyway, swift 3.0 branch is just for testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you are saying. That change is simply a type, I removed count: by accident and put it back and instead of 4, I put it back as 2. For other changes, I don't use the tool because with Swift 3 it causes syntax issues especially in this beta. Also many changes in this beta were not suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, it seems get complicated... I mean the conversion tool will not change count 4 to 2 right? It seems like a manual change. I am asking why we change from 4 to 2.
Also, why you said "many changes in this beta were not suggested" ? I am still downloading, but I need to work then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea give the conversion tool a try this time around, then you will understand. Anyways in this instance its simply a mistake. I can submit another commit with the fix once we go over the rest, to make sure there aren't any other mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acegreen I now understand. However, I think _shadowPoints
count should be 4. not 2. Code below uses 4 of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha ITS MY MISTAKE :P, I removed the count and when I added it, I added it back as 2. IT SHOULD BE 4. I'll update it in the next commit
@acegreen hey I just spend several hours on this. Thanks for your work, I know it's painful and requires patience. There are several issues we need to address (also in line note):
You could continue commit in this PR |
@liuxuan30 Yea but we should be able to sort it out.
|
@acegreen I am going to merge this PR soon, but a few more comments: for 1, I am just saying using for 2, have you investigated .evenOdd or winding, and relates to your pie chart issue? |
|
great, merged. Thanks! |
No description provided.