mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-09 14:29:26 +00:00
* Reimplement IGListKit support in a cleaner way * Rename and fix some stuff * Fix supplementaries more * Update docs * Update test * Cleanup minor things * Tweak it * Indentation * Remove irrelevant changes * Break out cell into its own file * Fix indentation * Address feedback
31 lines
689 B
Objective-C
31 lines
689 B
Objective-C
//
|
|
// ASListKitTestAdapterDataSource.m
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Adlai Holler on 12/25/16.
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import "ASListKitTestAdapterDataSource.h"
|
|
#import "ASListTestSection.h"
|
|
|
|
@implementation ASListKitTestAdapterDataSource
|
|
|
|
- (NSArray *)objectsForListAdapter:(IGListAdapter *)listAdapter
|
|
{
|
|
return self.objects;
|
|
}
|
|
|
|
- (IGListSectionController <IGListSectionType> *)listAdapter:(IGListAdapter *)listAdapter sectionControllerForObject:(id)object
|
|
{
|
|
ASListTestSection *section = [[ASListTestSection alloc] init];
|
|
return section;
|
|
}
|
|
|
|
- (nullable UIView *)emptyViewForListAdapter:(IGListAdapter *)listAdapter
|
|
{
|
|
return nil;
|
|
}
|
|
|
|
@end
|