mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -50,5 +50,6 @@ NSInteger UITabBarItem_addSetBadgeListener(UITabBarItem * _Nonnull item, UITabBa
|
||||
|
||||
@property (nonatomic, strong) NSString * _Nullable animationName;
|
||||
@property (nonatomic, assign) CGPoint animationOffset;
|
||||
@property (nonatomic, assign) bool ringSelection;
|
||||
|
||||
@end
|
||||
|
||||
@@ -18,6 +18,7 @@ static const void *setBadgeListenerBagKey = &setBadgeListenerBagKey;
|
||||
static const void *badgeKey = &badgeKey;
|
||||
static const void *animationNameKey = &animationNameKey;
|
||||
static const void *animationOffsetKey = &animationOffsetKey;
|
||||
static const void *ringSelectionKey = &ringSelectionKey;
|
||||
|
||||
@implementation UINavigationItem (Proxy)
|
||||
|
||||
@@ -419,4 +420,12 @@ NSInteger UITabBarItem_addSetBadgeListener(UITabBarItem *item, UITabBarItemSetBa
|
||||
return ((NSValue *)[self associatedObjectForKey:animationOffsetKey]).CGPointValue;
|
||||
}
|
||||
|
||||
- (void)setRingSelection:(bool)ringSelection {
|
||||
[self setAssociatedObject:@(ringSelection) forKey:ringSelectionKey];
|
||||
}
|
||||
|
||||
- (bool)ringSelection {
|
||||
return ((NSNumber *)[self associatedObjectForKey:ringSelectionKey]).boolValue;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user