Updated RecipeView

This commit is contained in:
VincentMeilinger
2024-03-01 14:17:24 +01:00
parent d3e0366ce6
commit 744ea76a34
41 changed files with 588 additions and 383 deletions

View File

@@ -58,8 +58,6 @@ struct ReorderableForEach<Item: Any, Content: View>: View {
} label: {
Text(allowDeletion ? "Disable deletion" : "Enable deletion")
.bold()
.padding(.vertical, 3)
.padding(.horizontal)
}
.tint(Color.red)
Spacer()
@@ -68,11 +66,11 @@ struct ReorderableForEach<Item: Any, Content: View>: View {
} label: {
Image(systemName: "plus")
.bold()
.padding(.vertical, 3)
.padding(.vertical, 2)
.padding(.horizontal)
}
.buttonStyle(.borderedProminent)
}
}.padding(.top, 3)
}.animation(.default, value: allowDeletion)
}
}