Various improvements

This commit is contained in:
Ilya Laktyushin
2024-06-18 01:06:31 +04:00
parent 907e408dcc
commit a2348148ff
11 changed files with 250 additions and 39 deletions

View File

@@ -163,11 +163,13 @@ public struct ChatMessageBubbleContentTapAction {
}
public var content: Content
public var rects: [CGRect]?
public var hasLongTapAction: Bool
public var activate: (() -> Promise<Bool>?)?
public init(content: Content, hasLongTapAction: Bool = true, activate: (() -> Promise<Bool>?)? = nil) {
public init(content: Content, rects: [CGRect]? = nil, hasLongTapAction: Bool = true, activate: (() -> Promise<Bool>?)? = nil) {
self.content = content
self.rects = rects
self.hasLongTapAction = hasLongTapAction
self.activate = activate
}