Skip to content

Conversation

@objectivecosta
Copy link

Minor fixes for swift 3. Fully functional. However, the method naming is not entirely adequate. Many methods should be refactored.

@objectivecosta objectivecosta mentioned this pull request Sep 13, 2016
@philackm
Copy link
Owner

Thank you for doing this!

This is definitely a priority, I want to have it working with Swift 3 as well. I'm busy with uni assignments at the moment, I will check this and try to deal with the method naming over the next week.

@philackm
Copy link
Owner

I might even just double check that everything works and merge this then deal with the major issues over the summer.

@objectivecosta
Copy link
Author

objectivecosta commented Sep 15, 2016

@philackm I did a lot of method renaming in this second commit of mine. Check it out, I think it is good to go.

Only one change I'd like to comment: -prepareForInterfaceBuilder
I commented -setData: on it because it was crashing my Interface Builder. Could be something on my machine, but worth checking out.

@iceman201
Copy link

omg my project is waiting for this framework support swift 3

@devJoshLopez
Copy link

please merge this. Much love

Copy link

@mikeMTOL mikeMTOL left a comment

Choose a reason for hiding this comment

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

This commit could be way smaller if empty line changes are reverted.

@IBDesignable
@objc public class ScrollableGraphView: UIScrollView, UIScrollViewDelegate, ScrollableGraphViewDrawingDelegate {

Choose a reason for hiding this comment

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

This is sloppy.. you shouldn't commit empty line changes.

let actualMax = clamp(value: max + numberOfPointsOffscreen, min: minPossible, max: maxPossible)


return actualMin ..< actualMax
Copy link

@mikeMTOL mikeMTOL Sep 22, 2016

Choose a reason for hiding this comment

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

this should be actualMin ..< actualMax + 1 to conform to what it was before.

private var y: CGFloat {

var y: CGFloat {

Choose a reason for hiding this comment

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

this should stay fileprivate to maintain previous behaviour

@dhf
Copy link
Contributor

dhf commented Sep 23, 2016

DataPoints are not drawn correctly if we have many of them. To test these behavior start sample project in original repo!

@philackm
Copy link
Owner

I have decided to merge in #48 to perform the Swift 3 migration. Thanks everyone.

@philackm philackm closed this Sep 26, 2016
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.

6 participants