forked from shadowfacts/Tusker
Add haptic feedback to profile follow button
This commit is contained in:
parent
fa31c28e92
commit
169f1a0191
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue