From c4bfb195fd3841c9aa0a291a7574be9ace61f9e1 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Mon, 11 Jan 2021 11:58:59 -0500 Subject: [PATCH] Improve VoiceOver tap target frames --- Shared/PostList/PostListView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Shared/PostList/PostListView.swift b/Shared/PostList/PostListView.swift index d8e7eca..1d16962 100644 --- a/Shared/PostList/PostListView.swift +++ b/Shared/PostList/PostListView.swift @@ -82,6 +82,8 @@ struct PostListView: View { model.isPresentingSettingsView = true }, label: { Image(systemName: "gear") + .padding(.vertical, 4) + .padding(.horizontal, 8) }) .accessibilityLabel(Text("Settings")) .accessibilityHint(Text("Open the Settings sheet")) @@ -91,6 +93,8 @@ struct PostListView: View { Spacer() if model.isProcessingRequest { ProgressView() + .padding(.vertical, 4) + .padding(.horizontal, 8) } else { Button(action: { DispatchQueue.main.async { @@ -99,13 +103,16 @@ struct PostListView: View { } }, label: { Image(systemName: "arrow.clockwise") + .padding(.vertical, 4) + .padding(.horizontal, 8) }) .accessibilityLabel(Text("Refresh Posts")) .accessibilityHint(Text("Fetch changes from the server")) .disabled(!model.account.isLoggedIn) } } - .padding() + .padding(.top, 8) + .padding(.horizontal, 8) Spacer() } .frame(height: frameHeight)