Voice message record button hapitcs (#2013)

* Move tooltip logics in VoiceMessageRecordingButton

* Add hapitc feedback when recording a voice message

* Cleanup
This commit is contained in:
Alfonso Grillo
2023-11-02 12:58:19 +01:00
committed by GitHub
parent 4af8ef2a5f
commit 4d3cb97fbb
4 changed files with 73 additions and 65 deletions
@@ -42,3 +42,9 @@ struct ViewFrameReader: View {
}
}
}
extension View {
func readFrame(_ frame: Binding<CGRect>, in coordinateSpace: CoordinateSpace = .local) -> some View {
background(ViewFrameReader(frame: frame, coordinateSpace: coordinateSpace))
}
}