mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-10 11:00:46 +00:00
Summary: **Changes occurred only for the IGListCollectionViewLayout.** **Specifically:** 1. Harnessed the hardcore to the fact that it is possible to use only headers. 2. Assertions removed 3. Caching for layout of attributes of footers 4. Implemented the location of the footers in any orientation scroll Issue fixed: #898 I need this enhancement ASAP 🙏 **Example:** Footers with user comments count  - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) - [x] I updated example project with implemented feature Closes https://github.com/Instagram/IGListKit/pull/1017 Reviewed By: jeremycohen Differential Revision: D6385893 Pulled By: rnystrom fbshipit-source-id: 5f1bad5655d2df321f8c71496aa797ac8e3d226a
30 lines
989 B
Swift
30 lines
989 B
Swift
/**
|
|
Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
|
|
|
|
The examples provided by Facebook are for non-commercial testing and evaluation
|
|
purposes only. Facebook reserves all rights not expressly granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
import UIKit
|
|
|
|
final class UserFooterView: UICollectionViewCell {
|
|
|
|
@IBOutlet private weak var commentsCountLabel: UILabel!
|
|
|
|
var commentsCount: String? {
|
|
get {
|
|
return commentsCountLabel.text
|
|
}
|
|
set {
|
|
commentsCountLabel.text = newValue
|
|
}
|
|
}
|
|
|
|
}
|