37 lines
805 B
Swift
Raw Normal View History

2021-03-11 15:41:27 +08:00
//
// ComposeStatusSection.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-3-11.
//
import UIKit
import Combine
import CoreData
import CoreDataStack
2021-07-22 19:34:24 +08:00
import MetaTextKit
import MastodonMeta
import AlamofireImage
2021-03-11 15:41:27 +08:00
public enum ComposeStatusSection: Equatable, Hashable {
case replyTo
2021-03-11 15:41:27 +08:00
case status
case attachment
2021-03-23 18:47:21 +08:00
case poll
2021-03-11 15:41:27 +08:00
}
public protocol CustomEmojiReplaceableTextInput: UITextInput & UIResponder {
2021-03-25 15:56:17 +08:00
var inputView: UIView? { get set }
}
public class CustomEmojiReplaceableTextInputReference {
public weak var value: CustomEmojiReplaceableTextInput?
2021-03-25 15:56:17 +08:00
public init(value: CustomEmojiReplaceableTextInput? = nil) {
2021-03-25 15:56:17 +08:00
self.value = value
}
}
extension UITextField: CustomEmojiReplaceableTextInput { }
extension UITextView: CustomEmojiReplaceableTextInput { }