mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-14 04:49:05 +00:00
Summary: Mainly this addresses clarity of a few comments, line breaks at weird places, and style differences within a single file. Just comments and including JetBrains `.idea` config folder in the `gitignore`. - [X] All tests pass. Demo project builds and runs. - [X] I added tests, an experiment, or detailed why my change isn't tested. - [N/A] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [N/A] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/600 Differential Revision: D4810628 Pulled By: jessesquires fbshipit-source-id: fce445c0253f592a43045ae098e440d41c166993
31 lines
870 B
Objective-C
31 lines
870 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 <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
A protocol for cells that configure themselves given a view model.
|
|
*/
|
|
@protocol IGListBindable <NSObject>
|
|
|
|
/**
|
|
Tells the cell to configure itself with the given view model.
|
|
|
|
@param viewModel The view model for the cell.
|
|
|
|
@note The view model can change many times throughout the lifetime of a cell as the model values change and the cell
|
|
is reused. Implementations should use only this method to do their configuration.
|
|
*/
|
|
- (void)bindViewModel:(id)viewModel;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|