mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
add UI test, separate model class in Services, UI fix for button with single selection style
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user