mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Implement simple horizontal paging node
This commit is contained in:
24
examples/PagerNode/Sample/PageNode.m
Normal file
24
examples/PagerNode/Sample/PageNode.m
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// PageNode.m
|
||||
// Sample
|
||||
//
|
||||
// Created by McCallum, Levi on 12/7/15.
|
||||
// Copyright © 2015 Facebook. All rights reserved.
|
||||
//
|
||||
|
||||
#import "PageNode.h"
|
||||
|
||||
@implementation PageNode
|
||||
|
||||
- (ASLayout *)calculateLayoutThatFits:(ASSizeRange)constrainedSize
|
||||
{
|
||||
return [ASLayout layoutWithLayoutableObject:self size:constrainedSize.max];
|
||||
}
|
||||
|
||||
- (void)fetchData
|
||||
{
|
||||
[super fetchData];
|
||||
NSLog(@"Fetching data for node: %@", self);
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user