帮助文档改为应用内 WebView 加载本地 HTML,避免依赖外部平台内容。 Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
612 B
Swift
21 lines
612 B
Swift
//
|
||
// WiredCameraTransferHelpDocument.swift
|
||
// suixinkan
|
||
//
|
||
|
||
import Foundation
|
||
|
||
/// 有线相机传输帮助文档(App 内置 HTML),供传输页与历史导入页打开。
|
||
enum WiredCameraTransferHelpDocument {
|
||
/// 导航栏标题。
|
||
static let pageTitle = "帮助文档"
|
||
|
||
/// Bundle 内资源名(不含扩展名)。
|
||
static let resourceName = "WiredCameraTransferHelp"
|
||
|
||
/// 返回内置帮助页文件 URL;资源缺失时返回 `nil`。
|
||
static func bundledURL(in bundle: Bundle = .main) -> URL? {
|
||
bundle.url(forResource: resourceName, withExtension: "html")
|
||
}
|
||
}
|