mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Revert updates to ASViewController
This commit is contained in:
@@ -48,6 +48,12 @@
|
||||
self.view = _node.view;
|
||||
}
|
||||
|
||||
- (void)viewWillLayoutSubviews
|
||||
{
|
||||
[super viewWillLayoutSubviews];
|
||||
[_node measureWithSizeRange:[self nodeConstrainedSize]];
|
||||
}
|
||||
|
||||
- (void)viewDidLayoutSubviews
|
||||
{
|
||||
if (_ensureDisplayed && self.neverShowPlaceholders) {
|
||||
@@ -60,20 +66,10 @@
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[_node measureWithSizeRange:[self nodeConstrainedSize]];
|
||||
|
||||
_ensureDisplayed = YES;
|
||||
[_node recursivelyFetchData];
|
||||
}
|
||||
|
||||
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
|
||||
{
|
||||
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
|
||||
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
|
||||
[self.node transitionLayoutWithSizeRange:ASSizeRangeMake(size, size) animated:[context isAnimated]];
|
||||
} completion:nil];
|
||||
}
|
||||
|
||||
// MARK: - Layout Helpers
|
||||
|
||||
- (ASSizeRange)nodeConstrainedSize
|
||||
|
||||
Reference in New Issue
Block a user