mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
|
||||
swift_library(
|
||||
name = "LegacyMessageInputPanelInputView",
|
||||
module_name = "LegacyMessageInputPanelInputView",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
copts = [
|
||||
"-warnings-as-errors",
|
||||
],
|
||||
deps = [
|
||||
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
||||
"//submodules/Display",
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
import AsyncDisplayKit
|
||||
import Display
|
||||
|
||||
public protocol LegacyMessageInputPanelInputView: UIView {
|
||||
var insertText: ((NSAttributedString) -> Void)? { get set }
|
||||
var deleteBackwards: (() -> Void)? { get set }
|
||||
var switchToKeyboard: (() -> Void)? { get set }
|
||||
var presentController: ((ViewController) -> Void)? { get set }
|
||||
}
|
||||
Reference in New Issue
Block a user