Skip to content

๐Ÿ—“ Easy static tables, written in Swift.

License

Notifications You must be signed in to change notification settings

rmnblm/EasyTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

EasyTable

Easy static tables, written in Swift.

Getting Started

final class ViewController: UIViewController {

    private lazy var easyTable = EasyTableView()

    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Add easyTable to view
        
        easyTable.sections = [
            .init(
                header: .title("Section 1"),
                rows: [
                    .init(style: .text("Row 1"), accessory: .disclosure) { [weak self] in
                        self?.navigationController?.pushViewController(ViewController(), animated: true)
                    }
                ]
            ),
            .init(
                header: .view(UILabel()),
                rows: [
                    .init(style: .text("Support")),
                    .init(style: .text("Follow Us")),
                    .init(style: .text("Acknowledgements"))
                ],
                footer: .title("Version 1.0")
            )
        ]
    }
}

About

๐Ÿ—“ Easy static tables, written in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages