mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 14:10:05 +00:00
[ASCellNode] implement a .viewController property
This commit is contained in:
parent
da465bf812
commit
31ffea40c2
@ -116,6 +116,13 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
|
|||||||
*/
|
*/
|
||||||
@property (nonatomic, readonly, nullable) NSIndexPath *indexPath;
|
@property (nonatomic, readonly, nullable) NSIndexPath *indexPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The backing view controller, or @c nil if the node wasn't initialized with backing view controller
|
||||||
|
* @note This property must be accessed on the main thread.
|
||||||
|
*/
|
||||||
|
@property (nonatomic, readonly, nullable) UIViewController *viewController;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The owning node (ASCollectionNode/ASTableNode) of this cell node, or @c nil if this node is
|
* The owning node (ASCollectionNode/ASTableNode) of this cell node, or @c nil if this node is
|
||||||
* not a valid item inside a table node or collection node or if those nodes are nil.
|
* not a valid item inside a table node or collection node or if those nodes are nil.
|
||||||
|
@ -236,6 +236,12 @@ static NSMutableSet *__cellClassesForVisibilityNotifications = nil; // See +init
|
|||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (UIViewController *)viewController
|
||||||
|
{
|
||||||
|
ASDisplayNodeAssertMainThread();
|
||||||
|
return _viewController;
|
||||||
|
}
|
||||||
|
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wobjc-missing-super-calls"
|
#pragma clang diagnostic ignored "-Wobjc-missing-super-calls"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user