Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/muyexi/StaticTableViewController

Dynamically hide / show cells of static UITableViewController
https://github.com/muyexi/StaticTableViewController

swift uitableviewcontroller

Last synced: 6 days ago
JSON representation

Dynamically hide / show cells of static UITableViewController

Awesome Lists containing this project

README

        

[![CocoaPods](https://img.shields.io/cocoapods/v/StaticTableViewController.svg)](https://img.shields.io/cocoapods/v/StaticTableViewController.svg)
[![SPM](https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat)](https://swift.org/package-manager/)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/muyexi/StaticTableViewController/blob/master/LICENSE)

Dynamically hide / show cells of static UITableViewController, Swift Port of [StaticDataTableViewController](https://github.com/peterpaulis/StaticDataTableViewController).

## Installation

### CocoaPods

```ruby
pod 'StaticTableViewController'
```

### Swift Package Manager

```swift
dependencies: [
.Package(url: "https://github.com/muyexi/StaticTableViewController.git", majorVersion: 0)
]
```

## Usage

Show/hide cells with outlet connections

```swift
cell(outletStaticCell1, hidden: true)
cells([outletStaticCell1, outletStaticCell2], hidden: true)

reloadDataAnimated(true)
```

## License

StaticTableViewController is released under the MIT license. See LICENSE for details.