StaticTableViewController
  • October 7, 2023

Dynamically hide / show cells of static UITableViewController, Swift Port of StaticDataTableViewController.

Installation


CocoaPods

 

pod ‘StaticTableViewController’

Swift Package Manager

 

dependencies: [
.Package(url: “https://github.com/muyexi/StaticTableViewController.git”, majorVersion: 0)
]

Usage


Show/hide cells with outlet connections

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

reloadDataAnimated(true)

GitHub


View Github

#swift #uitableviewcontroller
YOU MIGHT ALSO LIKE...
Untitled

    

How to take action when a property changes

1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...

How to create your own structs? How to compute property values dynamically?

1. Creating Your Own Structs In Swift, a struct is a value type that you define with the struct keyword. ...

How to use trailing closures and shorthand syntax?

1. Trailing Closure Syntax When the last parameter to a function is a closure, you can write that closure after ...

How to create and use closures?

1. What Is a Closure (and Why Swift Loves Them) A closure in Swift is a self-contained block of functionality ...