Skip to content

cemolcay/JSONTableView

Repository files navigation

JSONTableView

Display your SwiftyJSON data on an expandable list view. The view itself is not a UITableView subclass, everything is created with UIStackViews, so it's not memory friendly for big json files. I created it for debugging my json data in a quick and dirty way. Contributions are welcomed for making it better!

Demo

alt tag

Install

pod 'JSONTableView'

Usage

  • Create an instance of JSONTableView either programmaticaly or in your storyboard.
@IBOutlet weak var tableView: JSONTableView?
  • Pass a SwiftyJSON's JSON type data object to your JSONTableView instance's data property and call reloadData()
let data = JSON(...)
tableView?.data = data
tableView?.reloadData()
  • You may expand/collapse all possible expandable cells with
tableView?.expandAll()
tableView?.collapseAll()
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy