aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-12-28 17:25:15 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-12-28 17:25:15 +0530
commit7db90f7dce94b60038a64e2703ba1fe46fbbabbd (patch)
tree67d75b58b949a14f670c73f3081dbca82b4566a2
parent4464ef52682c25c0b3a7682c928d7a0355cf0675 (diff)
added haptic feedback
-rw-r--r--Qrious/ContentView.swift6
1 files changed, 5 insertions, 1 deletions
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")
}
}