Expandable JSON data viewer
Display your SwiftyJSON data on an expandable list view. The view itself is not a UITableView
subclass, everything is created with UIStackView
s, 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!
pod 'JSONTableView'
JSONTableView
either programmaticaly or in your storyboard.@IBOutlet weak var tableView: JSONTableView?
JSON
type data object to your JSONTableView instance's data
property and call reloadData()
let data = JSON(...)
tableView?.data = data
tableView?.reloadData()
tableView?.expandAll()
tableView?.collapseAll()