Refactor ViewModel

This commit is contained in:
世界
2025-12-01 17:11:34 +08:00
parent 30492c1191
commit 8e764c56eb
34 changed files with 136 additions and 160 deletions
@@ -67,7 +67,7 @@ public struct ProfileView: View {
} else {
List {
ForEach(viewModel.profileList, id: \.id) { profile in
viewBuilder {
Group {
#if os(iOS) || os(tvOS)
if viewModel.editMode.isEditing == true {
Text(profile.name)
@@ -182,7 +182,7 @@ public struct ProfileView: View {
}
private var draggableBody: some View {
viewBuilder {
Group {
#if !os(macOS)
FormNavigationLink {
EditProfileView().environmentObject(profile.origin)