mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
size fitting preview tests for the media events timeline
This commit is contained in:
@@ -14,6 +14,7 @@ struct PreviewScrollView<Content: View>: View {
|
||||
var content: () -> Content
|
||||
|
||||
var body: some View {
|
||||
#if DEBUG
|
||||
if ProcessInfo.isRunningTests {
|
||||
content()
|
||||
} else {
|
||||
@@ -21,5 +22,10 @@ struct PreviewScrollView<Content: View>: View {
|
||||
content()
|
||||
}
|
||||
}
|
||||
#else
|
||||
ScrollView {
|
||||
content()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user