From 7db90f7dce94b60038a64e2703ba1fe46fbbabbd Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 28 Dec 2020 17:25:15 +0530 Subject: [PATCH] added haptic feedback --- Qrious/ContentView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Qrious/ContentView.swift b/Qrious/ContentView.swift index 120cd4e..ebb12dc 100644 --- a/Qrious/ContentView.swift +++ b/Qrious/ContentView.swift @@ -169,7 +169,11 @@ struct ContentView: View { Section{ - Button(action: {self.fetch.fetchAgain(q: self.query, p: String(self.noOfArticles), limit: self.LimitToChemrxiv, prepints: self.LimitToPreprints)}){ + Button(action: { + self.fetch.fetchAgain(q: self.query, p: String(self.noOfArticles), limit: self.LimitToChemrxiv, prepints: self.LimitToPreprints) + let impactMed = UIImpactFeedbackGenerator(style: .medium) + impactMed.impactOccurred() + }){ Text("Get Papers") } }