Swiftpack.co - rmnblm/EasyTable as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by rmnblm.
rmnblm/EasyTable 2.1.6
🗓 Easy static tables, written in Swift.
⭐️ 0
🕓 2 years ago
iOS tvOS
.package(url: "https://github.com/rmnblm/EasyTable.git", from: "2.1.6")

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")
            )
        ]
    }
}

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics