Update API

This commit is contained in:
Ilya Laktyushin
2025-03-17 21:10:07 +04:00
parent 7e4195a6eb
commit 4291cd6279
22 changed files with 1138 additions and 638 deletions

View File

@@ -879,6 +879,7 @@ public final class MessageInputPanelComponent: Component {
self.vibrancyPlaceholder.view?.removeFromSuperview()
self.vibrancyPlaceholder = ComponentView()
}
self.currentPlaceholderType = placeholderType
let attributedPlaceholder = NSMutableAttributedString(string: string, font:Font.regular(17.0), textColor: UIColor(rgb: 0xffffff, alpha: 0.4))
if let range = attributedPlaceholder.string.range(of: "#") {
@@ -916,6 +917,7 @@ public final class MessageInputPanelComponent: Component {
self.vibrancyPlaceholder.view?.removeFromSuperview()
self.vibrancyPlaceholder = ComponentView()
}
self.currentPlaceholderType = placeholderType
var placeholderItems: [AnimatedTextComponent.Item] = []
switch component.placeholder {