mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various Fixes
This commit is contained in:
parent
3c46e77712
commit
e471e185b0
@ -173,10 +173,7 @@ public class InvisibleInkDustNode: ASDisplayNode {
|
|||||||
self?.emitterNode.view.mask = nil
|
self?.emitterNode.view.mask = nil
|
||||||
})
|
})
|
||||||
self.emitterMaskFillNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.15, removeOnCompletion: false)
|
self.emitterMaskFillNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.15, removeOnCompletion: false)
|
||||||
|
|
||||||
// let transition = ContainedViewLayoutTransition.animated(duration: 0.4, curve: .linear)
|
|
||||||
// transition.updateAlpha(node: self, alpha: 0.0)
|
|
||||||
|
|
||||||
self.isRevealedUpdated(true)
|
self.isRevealedUpdated(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ typedef enum {
|
|||||||
|
|
||||||
@property (nonatomic, strong) TGPhotoEntitiesContainerView *entitiesView;
|
@property (nonatomic, strong) TGPhotoEntitiesContainerView *entitiesView;
|
||||||
|
|
||||||
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context item:(id<TGMediaEditableItem>)item intent:(TGPhotoEditorControllerIntent)intent adjustments:(id<TGMediaEditAdjustments>)adjustments caption:(NSString *)caption screenImage:(UIImage *)screenImage availableTabs:(TGPhotoEditorTab)availableTabs selectedTab:(TGPhotoEditorTab)selectedTab;
|
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context item:(id<TGMediaEditableItem>)item intent:(TGPhotoEditorControllerIntent)intent adjustments:(id<TGMediaEditAdjustments>)adjustments caption:(NSAttributedString *)caption screenImage:(UIImage *)screenImage availableTabs:(TGPhotoEditorTab)availableTabs selectedTab:(TGPhotoEditorTab)selectedTab;
|
||||||
|
|
||||||
- (void)dismissEditor;
|
- (void)dismissEditor;
|
||||||
- (void)applyEditor;
|
- (void)applyEditor;
|
||||||
|
@ -305,7 +305,7 @@
|
|||||||
|
|
||||||
PGPhotoEditorValues *editorValues = (PGPhotoEditorValues *)[item.editingContext adjustmentsForItem:item.editableMediaItem];
|
PGPhotoEditorValues *editorValues = (PGPhotoEditorValues *)[item.editingContext adjustmentsForItem:item.editableMediaItem];
|
||||||
|
|
||||||
NSString *caption = [item.editingContext captionForItem:item.editableMediaItem];
|
NSAttributedString *caption = [item.editingContext captionForItem:item.editableMediaItem];
|
||||||
|
|
||||||
CGRect refFrame = CGRectZero;
|
CGRect refFrame = CGRectZero;
|
||||||
UIView *editorReferenceView = [self referenceViewForItem:item frame:&refFrame];
|
UIView *editorReferenceView = [self referenceViewForItem:item frame:&refFrame];
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
bool _scheduledVideoPlayback;
|
bool _scheduledVideoPlayback;
|
||||||
|
|
||||||
id<TGMediaEditAdjustments> _initialAdjustments;
|
id<TGMediaEditAdjustments> _initialAdjustments;
|
||||||
NSString *_caption;
|
NSAttributedString *_caption;
|
||||||
|
|
||||||
bool _viewFillingWholeScreen;
|
bool _viewFillingWholeScreen;
|
||||||
bool _forceStatusBarVisible;
|
bool _forceStatusBarVisible;
|
||||||
@ -139,7 +139,7 @@
|
|||||||
|
|
||||||
@synthesize actionHandle = _actionHandle;
|
@synthesize actionHandle = _actionHandle;
|
||||||
|
|
||||||
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context item:(id<TGMediaEditableItem>)item intent:(TGPhotoEditorControllerIntent)intent adjustments:(id<TGMediaEditAdjustments>)adjustments caption:(NSString *)caption screenImage:(UIImage *)screenImage availableTabs:(TGPhotoEditorTab)availableTabs selectedTab:(TGPhotoEditorTab)selectedTab
|
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context item:(id<TGMediaEditableItem>)item intent:(TGPhotoEditorControllerIntent)intent adjustments:(id<TGMediaEditAdjustments>)adjustments caption:(NSAttributedString *)caption screenImage:(UIImage *)screenImage availableTabs:(TGPhotoEditorTab)availableTabs selectedTab:(TGPhotoEditorTab)selectedTab
|
||||||
{
|
{
|
||||||
self = [super initWithContext:context];
|
self = [super initWithContext:context];
|
||||||
if (self != nil)
|
if (self != nil)
|
||||||
@ -2292,7 +2292,7 @@
|
|||||||
_documentController.delegate = self;
|
_documentController.delegate = self;
|
||||||
[_documentController setUTI:@"com.instagram.exclusivegram"];
|
[_documentController setUTI:@"com.instagram.exclusivegram"];
|
||||||
if (_caption.length > 0)
|
if (_caption.length > 0)
|
||||||
[_documentController setAnnotation:@{@"InstagramCaption" : _caption}];
|
[_documentController setAnnotation:@{@"InstagramCaption" : _caption.string}];
|
||||||
[_documentController presentOpenInMenuFromRect:self.view.frame inView:self.view animated:true];
|
[_documentController presentOpenInMenuFromRect:self.view.frame inView:self.view animated:true];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user