Files
Termind/Frameworks/TermindDomain/Snippets/SnippetEditing.swift
T
2026-09-13 01:30:00 +08:00

15 lines
258 B
Swift

import Foundation
nonisolated
extension Snippet
{
public func duplicated() -> Snippet {
var copy = self
copy.id = UUID()
copy.title = String(localized: "\(title) Copy")
copy.sortIndex = 0
return copy
}
}