2021-03-11 08:41:27 +01:00
|
|
|
//
|
|
|
|
// ComposeStatusSection.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-3-11.
|
|
|
|
//
|
|
|
|
|
2021-03-12 07:18:07 +01:00
|
|
|
import UIKit
|
|
|
|
import Combine
|
|
|
|
import CoreData
|
|
|
|
import CoreDataStack
|
2021-07-22 13:34:24 +02:00
|
|
|
import MetaTextKit
|
2021-06-28 13:41:41 +02:00
|
|
|
import MastodonMeta
|
2021-03-18 08:16:35 +01:00
|
|
|
import AlamofireImage
|
2021-03-11 08:41:27 +01:00
|
|
|
|
2022-10-10 13:14:52 +02:00
|
|
|
public enum ComposeStatusSection: Equatable, Hashable {
|
2022-01-27 14:23:39 +01:00
|
|
|
case replyTo
|
2021-03-11 08:41:27 +01:00
|
|
|
case status
|
2021-03-17 11:09:38 +01:00
|
|
|
case attachment
|
2021-03-23 11:47:21 +01:00
|
|
|
case poll
|
2021-03-11 08:41:27 +01:00
|
|
|
}
|
2021-03-12 07:18:07 +01:00
|
|
|
|
2022-10-10 13:14:52 +02:00
|
|
|
public protocol CustomEmojiReplaceableTextInput: UITextInput & UIResponder {
|
2021-03-25 08:56:17 +01:00
|
|
|
var inputView: UIView? { get set }
|
|
|
|
}
|
|
|
|
|
2022-10-10 13:14:52 +02:00
|
|
|
public class CustomEmojiReplaceableTextInputReference {
|
|
|
|
public weak var value: CustomEmojiReplaceableTextInput?
|
2021-03-25 08:56:17 +01:00
|
|
|
|
2022-10-10 13:14:52 +02:00
|
|
|
public init(value: CustomEmojiReplaceableTextInput? = nil) {
|
2021-03-25 08:56:17 +01:00
|
|
|
self.value = value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-18 08:25:32 +02:00
|
|
|
extension UITextField: CustomEmojiReplaceableTextInput { }
|
|
|
|
extension UITextView: CustomEmojiReplaceableTextInput { }
|