mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-05-27 01:32:32 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
47 lines
1.8 KiB
Objective-C
47 lines
1.8 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
#import <LegacyComponents/LegacyComponentsContext.h>
|
|
#import <LegacyComponents/TGModernGalleryInterfaceView.h>
|
|
|
|
@class TGModernGalleryScrollView;
|
|
|
|
@interface TGModernGalleryView : UIView
|
|
|
|
@property (nonatomic, copy) void (^transitionProgress)(CGFloat progress, bool manual);
|
|
@property (nonatomic, copy) bool (^transitionOut)(CGFloat velocity);
|
|
@property (nonatomic, copy) void (^instantDismiss)();
|
|
|
|
@property (nonatomic, strong, readonly) UIView *overlayContainerView;
|
|
|
|
@property (nonatomic, strong, readonly) UIView<TGModernGalleryInterfaceView> *interfaceView;
|
|
@property (nonatomic, strong, readonly) TGModernGalleryScrollView *scrollView;
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame context:(id<LegacyComponentsContext>)context itemPadding:(CGFloat)itemPadding interfaceView:(UIView<TGModernGalleryInterfaceView> *)interfaceView previewMode:(bool)previewMode previewSize:(CGSize)previewSize;
|
|
|
|
- (bool)shouldAutorotate;
|
|
|
|
- (void)showHideInterface;
|
|
- (void)hideInterfaceAnimated;
|
|
- (void)updateInterfaceVisibility;
|
|
- (bool)isInterfaceHidden;
|
|
|
|
- (void)addItemHeaderView:(UIView *)itemHeaderView;
|
|
- (void)removeItemHeaderView:(UIView *)itemHeaderView;
|
|
- (void)addItemFooterView:(UIView *)itemFooterView;
|
|
- (void)removeItemFooterView:(UIView *)itemFooterView;
|
|
|
|
- (void)simpleTransitionInWithCompletion:(void (^)())completion;
|
|
- (void)simpleTransitionOutWithVelocity:(CGFloat)velocity completion:(void (^)())completion;
|
|
- (void)transitionInWithDuration:(NSTimeInterval)duration;
|
|
- (void)transitionOutWithDuration:(NSTimeInterval)duration;
|
|
|
|
- (void)fadeOutWithDuration:(NSTimeInterval)duration completion:(void (^)(void))completion;
|
|
|
|
- (void)setScrollViewVerticalOffset:(CGFloat)offset;
|
|
|
|
- (void)setPreviewMode:(bool)previewMode;
|
|
- (void)enableInstantDismiss;
|
|
- (void)disableInstantDismiss;
|
|
|
|
@end
|