mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Make layoutOptions readonly
This commit is contained in:
@@ -66,9 +66,8 @@ static NSString * const kDefaultChildrenKey = @"kDefaultChildrenKey";
|
||||
|
||||
id<ASLayoutable> finalLayoutable = [child finalLayoutableWithParent:self];
|
||||
if (finalLayoutable) {
|
||||
ASLayoutOptions *finalLayoutOptions = [layoutOptions copy];
|
||||
finalLayoutOptions.isMutable = NO;
|
||||
finalLayoutable.layoutOptions = finalLayoutOptions;
|
||||
[layoutOptions copyIntoOptions:finalLayoutable.layoutOptions];
|
||||
finalLayoutable.layoutOptions.isMutable = NO;
|
||||
return finalLayoutable;
|
||||
}
|
||||
return child;
|
||||
|
||||
Reference in New Issue
Block a user