Add a task list button to the iPhone bottom bar
This commit is contained in:
@@ -76,6 +76,19 @@ struct PhoneView: View {
|
||||
tabButton("More", .more)
|
||||
Spacer(minLength: 0)
|
||||
ConnectionMark()
|
||||
Button {
|
||||
tab = .tasks
|
||||
path = []
|
||||
} label: {
|
||||
Image(systemName: "list.bullet")
|
||||
.font(Fonts.font(17, weight: 600))
|
||||
.foregroundStyle(Palette.accent)
|
||||
.padding(.horizontal, 10)
|
||||
.padding(.vertical, 8)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityLabel("Task list")
|
||||
}
|
||||
.padding(.horizontal, 12)
|
||||
.overlay(alignment: .top) {
|
||||
@@ -199,8 +212,6 @@ private struct ConnectionMark: View {
|
||||
Circle()
|
||||
.fill(store.connected ? Palette.ok : Palette.muted)
|
||||
.frame(width: 8, height: 8)
|
||||
Text(store.me?.displayName ?? "")
|
||||
.foregroundStyle(Palette.muted)
|
||||
}
|
||||
.lineLimit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user