add UI test, separate model class in Services, UI fix for button with single selection style

This commit is contained in:
Flavio Alescio
2023-05-10 16:40:00 +02:00
committed by Flescio
parent 4ab30f9632
commit f8b7b86641
7 changed files with 91 additions and 28 deletions
@@ -141,10 +141,15 @@ struct FormButtonStyles_Previews: PreviewProvider {
}
.buttonStyle(FormButtonStyle(accessory: .selection(isSelected: false)))
Button { } label: {
VStack(alignment: .listRowSeparatorLeading, spacing: 0) {
Label("Hello world", systemImage: "globe")
Text("subtitle\nsubtitle")
.foregroundColor(.secondary)
Label {
VStack(alignment: .leading, spacing: 8) {
Text("Hello world")
Text("subtitle\nsubtitle")
.font(.compound.bodyMD)
.foregroundColor(.element.secondaryContent)
}
} icon: {
Image(systemName: "globe")
}
}
.buttonStyle(FormButtonStyle(iconAlignment: .top, accessory: .singleSelection(isSelected: true)))