Files
GitHawk/Classes/Section Controllers/LoadMore/LoadMoreSectionController2.swift
Ryan Nystrom faca5497a8 New Inbox design (#1870)
* New Inbox design

* rename ident to number

* use ax animation

* building with old notifications removed

* remove "2" suffix

* use latest IGLK+Swift

* apply IGLK perf fixes

* fix build

* Update with IGLK binding bug fix
2018-06-17 14:47:59 -04:00

35 lines
983 B
Swift

//
// LoadMoreSectionController2.swift
// Freetime
//
// Created by Ryan Nystrom on 4/21/18.
// Copyright © 2018 Ryan Nystrom. All rights reserved.
//
import UIKit
import IGListKit
protocol LoadMoreSectionController2Delegate: class {
func didSelect(controller: LoadMoreSectionController2)
}
final class LoadMoreSectionController2: ListSwiftSectionController<String> {
weak var delegate: LoadMoreSectionController2Delegate?
override func createBinders(from value: String) -> [ListBinder] {
return [
binder(value, cellType: .class(LoadMoreCell.self), size: {
return CGSize(
width: $0.collection.containerSize.width,
height: Styles.Sizes.tableCellHeight
)
}, didSelect: { [weak self] context in
guard let strongSelf = self else { return }
strongSelf.delegate?.didSelect(controller: strongSelf)
})
]
}
}