remove iOS 16 support (#3443)

* remove iOS 16 support

* remove iOS 16 support

* test updates

* added more delay

* revert

* adding waiting time on the CI
This commit is contained in:
Mauro
2024-10-24 17:21:28 +02:00
committed by GitHub
parent 926924912f
commit 7d373c07a3
51 changed files with 91 additions and 91 deletions
@@ -180,18 +180,18 @@ struct ComposerToolbar: View {
guard !composerFocused else { return }
composerFocused = true
}
.onChange(of: context.composerFocused) { newValue in
.onChange(of: context.composerFocused) { _, newValue in
guard composerFocused != newValue else { return }
composerFocused = newValue
}
.onChange(of: composerFocused) { newValue in
.onChange(of: composerFocused) { _, newValue in
context.composerFocused = newValue
}
.onChange(of: context.plainComposerText) { _ in
.onChange(of: context.plainComposerText) {
context.send(viewAction: .plainComposerTextChanged)
}
.onChange(of: context.composerFormattingEnabled) { _ in
.onChange(of: context.composerFormattingEnabled) {
context.send(viewAction: .didToggleFormattingOptions)
}
.onAppear {
@@ -48,8 +48,8 @@ struct VoiceMessagePreviewComposer: View {
showCursor: playerState.showProgressIndicator,
onSeek: onSeek)
}
.onChange(of: isDragging) { isDragging in
onScrubbing(isDragging)
.onChange(of: isDragging) { _, newValue in
onScrubbing(newValue)
}
.padding(.vertical, 4.0)
.padding(.horizontal, 6.0)
@@ -32,8 +32,8 @@ struct SwipeRightAction<Label: View>: ViewModifier {
.offset(x: xOffset, y: 0.0)
.animation(.interactiveSpring().speed(0.5), value: xOffset)
.timelineGesture(gesture)
.onChange(of: dragGestureActive) { value in
if value == true {
.onChange(of: dragGestureActive) { _, newValue in
if newValue == true {
if shouldStartAction() {
feedbackGenerator.prepare()
canStartAction = true