mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Rejigger ASCollectionNode initializers
This commit is contained in:
@@ -33,19 +33,19 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*
|
||||
* @discussion Initializes and returns a newly allocated collection node object with the specified layout.
|
||||
*
|
||||
* @param layout The layout object to use for organizing items. The collection view stores a strong reference to the specified object. Must not be nil.
|
||||
* @param layout The layout object to use for organizing items. The collection node stores a strong reference to the specified object. Must not be nil.
|
||||
*/
|
||||
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout;
|
||||
|
||||
/**
|
||||
* Initializes an ASCollectionNode
|
||||
*
|
||||
* @discussion Initializes and returns a newly allocated collection node object with the specified frame and layout.
|
||||
* @discussion Initializes and returns a newly allocated collection node object with the specified layout.
|
||||
*
|
||||
* @param frame The frame rectangle for the collection view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This frame is passed to the superclass during initialization.
|
||||
* @param layout The layout object to use for organizing items. The collection view stores a strong reference to the specified object. Must not be nil.
|
||||
* @param layout The layout object to use for organizing items. The collection node stores a strong reference to the specified object. Must not be nil.
|
||||
* @param layoutInspector The layout inspector to use, or nil to use the ASDK default layout inspector.
|
||||
*/
|
||||
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout;
|
||||
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout layoutInspector:(nullable id<ASCollectionViewLayoutInspecting>)layoutInspector;
|
||||
|
||||
/**
|
||||
* Returns the corresponding ASCollectionView
|
||||
@@ -416,6 +416,16 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ASCollectionNode (Deprecated)
|
||||
|
||||
/**
|
||||
* Initializes an ASCollectionNode
|
||||
*
|
||||
* @discussion Initializes and returns a newly allocated collection node object with the specified frame and layout.
|
||||
*
|
||||
* @param frame The frame rectangle for the collection view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This frame is passed to the superclass during initialization.
|
||||
* @param layout The layout object to use for organizing items. The collection view stores a strong reference to the specified object. Must not be nil.
|
||||
*/
|
||||
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout ASDISPLAYNODE_DEPRECATED_MSG("Use -initWithCollectionViewLayout: instead.");
|
||||
|
||||
/**
|
||||
* Reload everything from scratch, destroying the working range and all cached nodes.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user