mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix replying in UI tests. (#1792)
This commit is contained in:
parent
356a3167f0
commit
2a6cf390d6
@ -75,16 +75,15 @@ struct SwipeRightAction<Label: View>: ViewModifier {
|
||||
}
|
||||
|
||||
xOffset = 0.0
|
||||
}
|
||||
)
|
||||
.onChange(of: dragGestureActive, perform: { value in
|
||||
})
|
||||
.onChange(of: dragGestureActive) { value in
|
||||
if value == true {
|
||||
if shouldStartAction() {
|
||||
feedbackGenerator.prepare()
|
||||
canStartAction = true
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
.overlay(alignment: .leading) {
|
||||
// We want the action icon to follow the view translation and gradually fade in
|
||||
label()
|
||||
|
@ -34,7 +34,7 @@ struct TimelineItemIdentifier: Hashable {
|
||||
extension TimelineItemIdentifier {
|
||||
/// Use only for mocks/tests
|
||||
static var random: Self {
|
||||
.init(timelineID: UUID().uuidString)
|
||||
.init(timelineID: UUID().uuidString, eventID: UUID().uuidString)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user