mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-25 01:12:24 +08:00
more swifty class handling
This commit is contained in:
@@ -16,6 +16,10 @@ protocol SegmentedControlSectionControllerDelegate: class {
|
||||
final class SegmentedControlSectionController: ListGenericSectionController<SegmentedControlModel>, SegmentedControlCellDelegate {
|
||||
|
||||
weak var delegate: SegmentedControlSectionControllerDelegate? = nil
|
||||
init(delegate: SegmentedControlSectionControllerDelegate?) {
|
||||
self.delegate = delegate
|
||||
super.init()
|
||||
}
|
||||
|
||||
override func sizeForItem(at index: Int) -> CGSize {
|
||||
guard let context = collectionContext else { fatalError("Collection context must be set") }
|
||||
|
||||
Reference in New Issue
Block a user