Impressia/Vernissage/CoreData/StatusData+Attachments.swift

14 lines
300 B
Swift

//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
// Licensed under the MIT License.
//
import Foundation
extension StatusData {
func attachments() -> [AttachmentData] {
return self.attachmentsRelation?.sorted(by: <) ?? []
}
}