mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
[WIP ]Emoji statuses
This commit is contained in:
parent
99c8a72cbd
commit
feb899920c
49 changed files with 776 additions and 437 deletions
|
|
@ -23,4 +23,4 @@ void applySmoothRoundedCornersImpl(CALayer * _Nonnull layer);
|
|||
|
||||
@end
|
||||
|
||||
UIView<UIKitPortalViewProtocol> * _Nullable makePortalView();
|
||||
UIView<UIKitPortalViewProtocol> * _Nullable makePortalView(bool matchPosition);
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ void applySmoothRoundedCornersImpl(CALayer * _Nonnull layer) {
|
|||
}
|
||||
}
|
||||
|
||||
UIView<UIKitPortalViewProtocol> * _Nullable makePortalView() {
|
||||
UIView<UIKitPortalViewProtocol> * _Nullable makePortalView(bool matchPosition) {
|
||||
if (@available(iOS 12.0, *)) {
|
||||
static Class portalViewClass = nil;
|
||||
static dispatch_once_t onceToken;
|
||||
|
|
@ -187,8 +187,8 @@ UIView<UIKitPortalViewProtocol> * _Nullable makePortalView() {
|
|||
if (@available(iOS 13.0, *)) {
|
||||
view.forwardsClientHitTestingToSourceView = false;
|
||||
}
|
||||
view.matchesPosition = true;
|
||||
view.matchesTransform = true;
|
||||
view.matchesPosition = matchPosition;
|
||||
view.matchesTransform = matchPosition;
|
||||
view.matchesAlpha = false;
|
||||
if (@available(iOS 13.0, *)) {
|
||||
view.allowsHitTesting = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue