修复编译警告
This commit is contained in:
@@ -39,7 +39,7 @@ class ClipEditViewController: UIViewController {
|
||||
private func setupNavigationBar() {
|
||||
let saveButton = UIBarButtonItem(
|
||||
title: "保存",
|
||||
style: .done,
|
||||
style: .prominent,
|
||||
target: self,
|
||||
action: #selector(didTapSaveButton)
|
||||
)
|
||||
@@ -85,8 +85,9 @@ class ClipEditViewController: UIViewController {
|
||||
Task {
|
||||
do {
|
||||
try await ClipStore.shared.update(updatedClip)
|
||||
await MainActor.run {
|
||||
_ = await MainActor.run {
|
||||
self.navigationController?.popViewController(animated: true)
|
||||
return ()
|
||||
}
|
||||
} catch {
|
||||
await MainActor.run {
|
||||
|
||||
Reference in New Issue
Block a user