feat(Today Dashboard - Tasks): add haptic feedback on touch or long press
MODIFY
ACHNBrowserUI/ACHNBrowserUI/views/todayDashboard/TodayTasksSection.swift
ACHNBrowserUI/ACHNBrowserUI/views/todayDashboard/TodayTasksSection.swift
@@ -49,10 +49,12 @@ struct TodayTasksSection: View {
return
}
self.collection.updateProgress(taskName: taskName)
+ FeedbackGenerator.shared.triggerSelection()
}
.onLongPressGesture {
guard task.hasProgress else { return }
self.collection.resetProgress(taskName: taskName)
+ FeedbackGenerator.shared.triggerSelection()
}
}
@@ -87,7 +89,6 @@ struct TodayTasksSection: View {
.padding(.vertical, 8)
}
}
-
}
struct TodayTasksSection_Previews: PreviewProvider {

feat(Today Dashboard - Tasks): add haptic feedback on touch or long press (#203)