mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-08 14:46:42 +01:00
23 lines
414 B
Swift
23 lines
414 B
Swift
|
//
|
||
|
// PlaintextMetaContent.swift
|
||
|
//
|
||
|
//
|
||
|
// Created by MainasuK on 2022-1-10.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
import Meta
|
||
|
|
||
|
public struct PlaintextMetaContent: MetaContent {
|
||
|
public let string: String
|
||
|
public let entities: [Meta.Entity] = []
|
||
|
|
||
|
public init(string: String) {
|
||
|
self.string = string
|
||
|
}
|
||
|
|
||
|
public func metaAttachment(for entity: Meta.Entity) -> MetaAttachment? {
|
||
|
return nil
|
||
|
}
|
||
|
}
|