Add haptic feedback to profile follow button

This commit is contained in:
Shadowfacts 2022-12-23 11:19:37 -05:00
parent fa31c28e92
commit 169f1a0191
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ class ProfileHeaderView: UIView {
} }
followButton.configuration!.showsActivityIndicator = true followButton.configuration!.showsActivityIndicator = true
followButton.isEnabled = false followButton.isEnabled = false
UIImpactFeedbackGenerator(style: .light).impactOccurred()
Task { Task {
do { do {
let (relationship, _) = try await mastodonController.run(req) let (relationship, _) = try await mastodonController.run(req)