1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-12 08:36:02 +01:00
mastodon-app-ufficiale-ipho.../MastodonSDK/Sources/MastodonCore/Model/Compose/ComposeStatusSection.swift

37 lines
805 B
Swift
Raw Normal View History

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