快捷指令保存文案前使用 iCloud 格式化预处理
This commit is contained in:
@@ -35,7 +35,8 @@ struct SaveClipIntent: AppIntent {
|
|||||||
return .result(value: "剪贴板没有有效文本,未保存。")
|
return .result(value: "剪贴板没有有效文本,未保存。")
|
||||||
}
|
}
|
||||||
|
|
||||||
try await ClipStore.shared.save(text: trimmed, source: source)
|
let formattedText = TextFormatter.formatForCloud(trimmed)
|
||||||
|
try await ClipStore.shared.save(text: formattedText, source: source)
|
||||||
return .result(value: "已保存到收集箱。")
|
return .result(value: "已保存到收集箱。")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user