Skip to content

Instantly share code, notes, and snippets.

View d-neri's full-sized avatar

Danielle Neri d-neri

  • Stealth
View GitHub Profile
@bithavoc
bithavoc / eureka_swift_3:composable_search_row.swift
Last active April 23, 2024 13:32
Eureka Swift 3 Composable Search Row
open class _ComposableSearchablePushRow<T: Equatable, Cell: CellType> : TableSelectorRow<Cell, ComposableSearchableViewController<T>> where Cell: BaseCell, Cell: TypedCellType, Cell.Value == ComposableSearchableItem<T>, T: SearchableItem, T: CustomStringConvertible {
public required init(tag: String?) {
super.init(tag: tag)
onCreateControllerCallback = { [weak self] _ in
let controller = ComposableSearchableViewController<T>()
controller.searchPlaceholder = self?.searchPlaceholder
return controller
}