added haptic feedback

This commit is contained in:
Navan Chauhan 2020-12-28 17:25:15 +05:30
parent 4464ef5268
commit 7db90f7dce
1 changed files with 5 additions and 1 deletions

View File

@ -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")
}
}