mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Refactoring [skip ci]
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
|
||||
swift_library(
|
||||
name = "ChatMessageTransitionNode",
|
||||
module_name = "ChatMessageTransitionNode",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
copts = [
|
||||
"-warnings-as-errors",
|
||||
],
|
||||
deps = [
|
||||
"//submodules/AsyncDisplayKit",
|
||||
"//submodules/TelegramUI/Components/Chat/ChatMessageItemView",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,15 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
import ChatMessageItemView
|
||||
import AsyncDisplayKit
|
||||
|
||||
public protocol ChatMessageTransitionNodeDecorationItemNode: ASDisplayNode {
|
||||
var contentView: UIView { get }
|
||||
}
|
||||
|
||||
public protocol ChatMessageTransitionNode: AnyObject {
|
||||
typealias DecorationItemNode = ChatMessageTransitionNodeDecorationItemNode
|
||||
|
||||
func add(decorationView: UIView, itemNode: ChatMessageItemView) -> DecorationItemNode
|
||||
func remove(decorationNode: DecorationItemNode)
|
||||
}
|
||||
Reference in New Issue
Block a user