mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-06 06:58:26 +00:00
Summary: This diff isn't correct, and the Instagram cut happens today. Pulling back so I have time to test the correct change more throughly. Reviewed By: rnystrom Differential Revision: D4550149 fbshipit-source-id: 2e882caeb9ef999b7fd57562740b352ea8edfa5f
31 lines
889 B
Objective-C
31 lines
889 B
Objective-C
/**
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import "IGListTestAdapterDataSource.h"
|
|
|
|
#import <IGListKit/IGListAdapter.h>
|
|
|
|
#import "IGListTestSection.h"
|
|
|
|
@implementation IGListTestAdapterDataSource
|
|
|
|
- (NSArray *)objectsForListAdapter:(IGListAdapter *)listAdapter {
|
|
return self.objects;
|
|
}
|
|
|
|
- (IGListSectionController <IGListSectionType> *)listAdapter:(IGListAdapter *)listAdapter sectionControllerForObject:(id)object {
|
|
IGListTestSection *list = [[IGListTestSection alloc] init];
|
|
return list;
|
|
}
|
|
|
|
- (nullable UIView *)emptyViewForListAdapter:(IGListAdapter *)listAdapter {
|
|
return self.backgroundView;
|
|
}
|
|
|
|
@end
|