KyoheiG3 / GridView

Reusable GridView with excellent performance and customization that can be time table, spreadsheet, paging and more.
MIT License
857 stars 59 forks source link

Support Code Layout #10

Closed Nonchalant closed 5 years ago

Nonchalant commented 5 years ago

Hi, Author.

Currently Initializer of GridView supports only Interface Builder. https://github.com/KyoheiG3/GridView/blob/4ddc758d2828150773e2c7fc41402aa800d7cf04/GridView/GridView.swift#L102-L118 https://github.com/KyoheiG3/GridView/blob/4ddc758d2828150773e2c7fc41402aa800d7cf04/GridViewExample/GridViewExample/TimeTableViewController.swift#L23-L25

But, I want to initalize GridView in code. I fix access modifier to public to enable to access from outside of module.

class ViewController: UIViewController {
    private weak var gridView = GridView(frame: .zero)
}
KyoheiG3 commented 5 years ago

LGTM Thanks!