Refactor Alerts

This commit is contained in:
世界
2025-12-01 18:22:06 +08:00
parent 8e764c56eb
commit 4ddfcdb324
40 changed files with 324 additions and 224 deletions
@@ -95,7 +95,7 @@ public struct EditProfileView: View {
viewModel.markAsChanged()
}
.disabled(viewModel.isLoading)
.alertBinding($viewModel.alert)
.alert($viewModel.alert)
}
#else
private var iOSBody: some View {
@@ -122,7 +122,7 @@ public struct EditProfileView: View {
}
}
#endif
.alertBinding($viewModel.alert)
.alert($viewModel.alert)
.navigationTitle("Edit Profile")
}
#endif