From cbbfe43b940bba69b22fb0edddf2c355fd70609d Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 22 Oct 2026 07:05:52 -0700 Subject: [PATCH] Make starting a new task on iPhone one tap --- mac/Sources/Byre/Phone.swift | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/mac/Sources/Byre/Phone.swift b/mac/Sources/Byre/Phone.swift index 0251191..7476497 100644 --- a/mac/Sources/Byre/Phone.swift +++ b/mac/Sources/Byre/Phone.swift @@ -56,7 +56,6 @@ struct PhoneView: View { @Environment(Overlays.self) private var overlays @ViewState private var tab = PhoneTab.lead @ViewState private var path: [PhoneRoute] = [] - @ViewState private var typing = false var body: some View { VStack(spacing: 0) { @@ -78,17 +77,9 @@ struct PhoneView: View { } } .frame(maxWidth: .infinity, maxHeight: .infinity) - if !typing { - tabBar - } + tabBar } .scrollDismissesKeyboard(.interactively) - .onReceive(NotificationCenter.default.publisher(for: UIResponder.keyboardWillShowNotification)) { _ in - typing = true - } - .onReceive(NotificationCenter.default.publisher(for: UIResponder.keyboardWillHideNotification)) { _ in - typing = false - } .overlay { OverlayHost() } @@ -153,6 +144,18 @@ struct PhoneView: View { tabButton("More", .more) Spacer(minLength: 0) ConnectionMark() + Button { + overlays.openSwitcher(store) + } label: { + Image(systemName: "plus") + .font(Fonts.font(17, weight: 600)) + .foregroundStyle(Palette.accent) + .padding(.horizontal, 10) + .padding(.vertical, 8) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .accessibilityLabel("New task") Button { tab = .tasks path = []