From 54f4883e7525b73a737785437e5167c8e68002a9 Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Thu, 10 Mar 2022 20:51:42 -0800 Subject: [PATCH] remove refresh button from toolbar --- .../App/Views/Home/HomeFeedViewIOS.swift | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index a946b21d3..a552e0c87 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -131,19 +131,13 @@ import Views .toolbar { ToolbarItem { if #available(iOS 15.0, *) { - Button( - action: { - viewModel.loadItems(dataService: dataService, searchQuery: searchQuery, isRefresh: true) - }, - label: { Label("Refresh Feed", systemImage: "arrow.clockwise") } - ) - .disabled(viewModel.isLoading) - .opacity(viewModel.isLoading ? 0 : 1) - .overlay { - if viewModel.isLoading { - ProgressView() + Button("", action: {}) + .disabled(true) + .overlay { + if viewModel.isLoading { + ProgressView() + } } - } } else { Button( action: {