mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix iconed switch view on iOS 13
This commit is contained in:
parent
a271b90793
commit
2db0d25dd2
1 changed files with 5 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ static const void *positionChangedKey = &positionChangedKey;
|
|||
self.backgroundColor = [UIColor redColor];
|
||||
self.tintColor = [UIColor redColor];
|
||||
UIView *handleView = self.subviews[0].subviews.lastObject;
|
||||
if (iosMajorVersion() >= 13) {
|
||||
handleView = self.subviews[0].subviews[1].subviews.lastObject;
|
||||
} else {
|
||||
handleView = self.subviews[0].subviews.lastObject;
|
||||
}
|
||||
|
||||
static Class subclass;
|
||||
static dispatch_once_t onceToken;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue