sonsongithub / numsw

Swift library like numpy, playgrounds notebook like jupyter.
MIT License
133 stars 9 forks source link

[2/3] cleanup static reference #10

Closed omochi closed 7 years ago

omochi commented 7 years ago
public func addLine(
    x: [Double], y: [Double])
{
    NumswPlayground.shared.addLine(x: x, y: y)
}

public func addLine2(
    x: [Double], y: [Double],
    x2: [Double], y2: [Double])
{
    NumswPlayground.shared.addLine2(x: x, y: y,
                                    x2: x2, y2: y2)
}

they are simply transfer invocation to singleton instance method.

omochi commented 7 years ago

This PR is orthogonal with #9 semantically. But it may conflict around RenderViewController. If to be so i will fix it.

sonsongithub commented 7 years ago

Is this commit UITableViewController version?

omochi commented 7 years ago

@sonsongithub Yes, but I found a new bug with UITableViewController version...

omochi commented 7 years ago

Oh, this includes #9 commits. I will fix this.

omochi commented 7 years ago

I switch back to ScrollView. It is easy to switch back TableView now.

omochi commented 7 years ago

now this PR includes #9

its ready to merge