Files
suixinkan_ios_new/suixinkan/Features/TravelAlbum/Services/ConnectionState+CameraConnectionState.swift
汉秋 be9c844bd3 将 otg_swift OTG 引擎迁入 Core/CameraOTG,并接入旅拍有线传图与历史导入。
恢复 USB 相机连接、边拍边传、三品牌驱动与 SwiftUI 历史导入页,通过适配层对接现有本地上传与 OSS 管道。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:22:07 +08:00

21 lines
624 B
Swift

import Foundation
/// OTG 线
extension ConnectionState {
/// 线 UI 使
var cameraConnectionState: CameraConnectionState {
switch self {
case .idle, .disconnected:
return .disconnected
case .searching:
return .searching
case .connecting:
return .connecting
case .connected(_, let deviceName):
return .connected(deviceName: deviceName)
case .failed(let message):
return .error(message)
}
}
}