mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-12 08:48:19 +08:00
* 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
35 lines
983 B
Swift
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)
|
|
})
|
|
]
|
|
}
|
|
|
|
}
|