| 12345678910111213141516171819202122232425262728293031323334 |
- //
- // StubDocument.swift
- // Todos
- //
- // Created by Sam Jaffe on 3/1/26.
- //
- import Foundation
- import SwiftUI
- import UniformTypeIdentifiers
- struct StubYamlDocument: FileDocument {
- static var readableContentTypes = [UTType.yaml]
- init() {}
- init(configuration: ReadConfiguration) throws {}
- func fileWrapper(configuration: WriteConfiguration) throws -> FileWrapper {
- return FileWrapper(regularFileWithContents: Data())
- }
- }
- struct StubJsonDocument: FileDocument {
- static var readableContentTypes = [UTType.json]
- init() {}
- init(configuration: ReadConfiguration) throws {}
- func fileWrapper(configuration: WriteConfiguration) throws -> FileWrapper {
- return FileWrapper(regularFileWithContents: Data())
- }
- }
|