diff --git a/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift b/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift index 6e2e2e1176..969a3fac09 100644 --- a/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift @@ -492,7 +492,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg self.textInputContainer = ASDisplayNode() self.textInputContainer.view.addSubview(self.textInputContainerBackgroundView) - self.textInputContainer.clipsToBounds = true + self.textInputContainer.clipsToBounds = false self.textInputNodeClippingContainer = ASDisplayNode() self.textInputNodeClippingContainer.clipsToBounds = true diff --git a/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift b/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift index edb72d1e7b..e0437a48fe 100644 --- a/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift +++ b/submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift @@ -346,10 +346,10 @@ public final class GlassBackgroundView: UIView { glassEffect.isInteractive = false let nativeView = UIVisualEffectView(effect: glassEffect) self.nativeView = nativeView - //nativeView.overrideUserInterfaceStyle = .light - //nativeView.traitOverrides.userInterfaceStyle = .light - self.foregroundView = UIImageView() - //self.foregroundView = nil + nativeView.overrideUserInterfaceStyle = .light + nativeView.traitOverrides.userInterfaceStyle = .light + //self.foregroundView = UIImageView() + self.foregroundView = nil } else { self.backgroundNode = NavigationBackgroundNode(color: .black, enableBlur: true, customBlurRadius: 5.0) self.nativeView = nil @@ -408,18 +408,18 @@ public final class GlassBackgroundView: UIView { if self.params != params { self.params = params - /*if let nativeView { - if #available(iOS 26.0, *) { - let glassEffect = UIGlassEffect(style: .regular) - glassEffect.tintColor = tintColor - glassEffect.isInteractive = false - - nativeView.effect = glassEffect - } - }*/ - if let foregroundView = self.foregroundView { foregroundView.image = generateForegroundImage(size: CGSize(width: cornerRadius * 2.0, height: cornerRadius * 2.0), isDark: isDark, fillColor: tintColor) + } else { + if let nativeView { + if #available(iOS 26.0, *) { + let glassEffect = UIGlassEffect(style: .regular) + //glassEffect.tintColor = tintColor.withMultipliedAlpha(0.1) + glassEffect.isInteractive = false + + nativeView.effect = glassEffect + } + } } } diff --git a/submodules/TelegramUI/Sources/ChatControllerNode.swift b/submodules/TelegramUI/Sources/ChatControllerNode.swift index 1c4fcaae6b..2f792c52fd 100644 --- a/submodules/TelegramUI/Sources/ChatControllerNode.swift +++ b/submodules/TelegramUI/Sources/ChatControllerNode.swift @@ -1145,7 +1145,7 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate { navigationModalFrame.update(layout: layout, transition: transition) navigationModalFrame.updateDismissal(transition: transition, progress: 1.0 - self.inputPanelContainerNode.expansionFraction, additionalProgress: 0.0, completion: {}) - self.inputPanelClippingNode.clipsToBounds = true + self.inputPanelClippingNode.clipsToBounds = false transition.updateCornerRadius(node: self.inputPanelClippingNode, cornerRadius: self.inputPanelContainerNode.expansionFraction * 10.0) } else { if let navigationModalFrame = self.navigationModalFrame { @@ -1154,7 +1154,7 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate { navigationModalFrame?.removeFromSupernode() }) } - self.inputPanelClippingNode.clipsToBounds = true + self.inputPanelClippingNode.clipsToBounds = false transition.updateCornerRadius(node: self.inputPanelClippingNode, cornerRadius: 0.0, completion: { [weak self] completed in guard let strongSelf = self, completed else { return