mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
added sample app that initializes ASCollectionView cells using view controllers, wip though
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
*/
|
||||
typedef UIView *(^ASDisplayNodeViewBlock)();
|
||||
|
||||
/**
|
||||
* UIView creation block. Used to create the backing view of a new display node.
|
||||
*/
|
||||
typedef UIViewController *(^ASDisplayNodeViewControllerBlock)();
|
||||
|
||||
/**
|
||||
* CALayer creation block. Used to create the backing layer of a new display node.
|
||||
*/
|
||||
@@ -94,6 +99,9 @@ typedef NS_OPTIONS(NSUInteger, ASInterfaceState)
|
||||
- (id)init;
|
||||
|
||||
|
||||
- (id)initWithViewControllerBlock:(ASDisplayNodeViewControllerBlock)viewControllerBlock;
|
||||
- (id)initWithViewControllerBlock:(ASDisplayNodeViewControllerBlock)viewControllerBlock didLoadBlock:(ASDisplayNodeDidLoadBlock)didLoadBlock;
|
||||
|
||||
/**
|
||||
* @abstract Alternative initializer with a block to create the backing view.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user