Popularity
2.4
Growing
Activity
0.3
Declining
93
4
10

Programming language: Swift
License: MIT License
Tags: UI     UITableView    
Latest version: v1.4.0

SelectionList alternatives and similar libraries

Based on the "UITableView" category.
Alternatively, view SelectionList alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of SelectionList or a related project?

Add another 'UITableView' Library

README

SelectionList

Simple single-selection or multiple-selection checklist, based on UITableView.

Swift Version Build Status [License][license-url] CocoaPods Compatible
Platform PRs Welcome

    

Usage

let selectionList = SelectionList()
selectionList.items = ["One", "Two", "Three", "Four", "Five"]
selectionList.addTarget(self, action: #selector(selectionChanged), for: .valueChanged)
selectionList.selectedIndex = 3

Multiple Selection

selectionList.allowsMultipleSelection = true
selectionList.selectedIndexes = [0, 1, 4]

Changing Appearance

The following properties can be changed either in Interface Builder or in code:

selectionList.selectionImage = UIImage(named: "v")
selectionList.deselectionImage = UIImage(named: "o")
selectionList.isSelectionMarkTrailing = false // to put checkmark on left side
selectionList.rowHeight = 42.0

You can do additional styling in code:

selectionList.setupCell =  { (cell: UITableViewCell, index: Int) in
    cell.textLabel?.textColor = .gray
}

Requirements

  • iOS 9.0+
  • Xcode 9+

Installation

CocoaPods:

pod 'SelectionList'

Legacy versions:

Swift version SelectionList version
4.1 (Xcode 9.4) pod 'SelectionList', '~> 1.2.0'
4.0 pod 'SelectionList', '~> 1.0.2'

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/yonat/SelectionList", from: "1.4.0")
]

Meta

@yonatsharon

https://github.com/yonat/SelectionList


*Note that all licence references and agreements mentioned in the SelectionList README section above are relevant to that project's source code only.