Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source Swift Library For Quickly Creating And Populating Simple Table Views

  •  
  •  
  •  
  •  
  •  

I’ve mentioned a number of libraries that simplify the creation of complex table views such as the Organic library which you can use to create just about any type of complex layout with considerably less code than using the iOS SDK’s UITableView library.

Here’s an open source Swift library submitted by Angel Vasa that dramatically simplifies the creation of simple table views, and populating them with data called AVLighterTableViewController.

Here’s an example from the readme showing the code one could use to create a simple table view and populate with data:

self.dataSource.registerTableCellNib("MyCustomTableViewCell", cellIdentifier: "myCell")
self.dataSource.setupData(["One", "Two", "Three"]) // Pass your object after server call
self.dataSource.selectedObject { (selectedObject) -> Void in
print(selectedObject)
}

You can find AVLighterTableViewController on Github here.

A nice tool for quickly creating simple table views without needing to add in all the boilerplate code.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments