retain order of the exercises during persistence process

This commit is contained in:
Felix Förtsch
2024-08-30 16:01:38 +02:00
parent 4afc656374
commit 22b0ba372e
10 changed files with 244 additions and 135 deletions
@@ -0,0 +1,30 @@
//
// AddItemButton.swift
// WorkoutsPlus
//
// Created by Felix Förtsch on 29.08.24.
//
import SwiftUI
struct AddItemButton: View {
var label: String
var action: () -> Void
var body: some View {
Button(action: {
action()
}) {
HStack {
Image(systemName: "plus.circle.fill")
.foregroundStyle(.green)
Text(label)
.foregroundStyle(.blue)
}
}
}
}
#Preview {
AddItemButton(label: "Add Item", action: {})
}