♻️ Refactor watchOS content view

This commit is contained in:
2025-10-29 01:26:27 +08:00
parent d4cf598f69
commit 1a37d384e6
18 changed files with 1118 additions and 863 deletions

View File

@@ -0,0 +1,21 @@
//
// AttachmentUtils.swift
// WatchRunner Watch App
//
// Created by LittleSheep on 2025/10/29.
//
import Foundation
// MARK: - Helper Functions
func getAttachmentUrl(for fileId: String, serverUrl: String) -> URL? {
let urlString: String
if fileId.starts(with: "http") {
urlString = fileId
} else {
urlString = "\(serverUrl)/drive/files/\(fileId)"
}
print("[watchOS] Generated image URL: \(urlString)")
return URL(string: urlString)
}