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