Unified detail views, model

This commit is contained in:
Christoph Hagen
2024-12-16 09:54:21 +01:00
parent 1e67a99866
commit 31d1ecb8bd
57 changed files with 853 additions and 954 deletions

View File

@ -2,22 +2,17 @@ import SwiftUI
struct IntegerPropertyView: View {
let title: LocalizedStringKey
@Binding
var value: Int
let title: String
let footer: String
let footer: LocalizedStringKey
var body: some View {
VStack(alignment: .leading) {
Text(title)
.font(.headline)
GenericPropertyView(title: title, footer: footer) {
IntegerField("", number: $value)
.textFieldStyle(.roundedBorder)
Text(footer)
.foregroundStyle(.secondary)
.padding(.bottom)
}
}
}