feat haptic feedback for reply action
This commit is contained in:
parent
7aaafcdc10
commit
4ee065eda4
|
@ -526,6 +526,9 @@ extension StatusProviderFacade {
|
|||
guard let provider = provider else { return }
|
||||
guard let status = status?.reblog ?? status else { return }
|
||||
|
||||
let generator = UIImpactFeedbackGenerator(style: .light)
|
||||
generator.impactOccurred()
|
||||
|
||||
let composeViewModel = ComposeViewModel(context: provider.context, composeKind: .reply(repliedToStatusObjectID: status.objectID))
|
||||
provider.coordinator.present(scene: .compose(viewModel: composeViewModel), from: provider, transition: .modal(animated: true, completion: nil))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue