Preview Tests (#1768)

* preview testing

* removed some views that are not really testabl in UnitTests and improved other tests
This commit is contained in:
Mauro
2023-09-20 17:33:31 +02:00
committed by GitHub
parent 612a28b7e2
commit 9d91cd4fc0
294 changed files with 1312 additions and 121 deletions
@@ -88,7 +88,7 @@ struct MessageText: UIViewRepresentable {
// MARK: - Previews
struct MessageText_Previews: PreviewProvider {
struct MessageText_Previews: PreviewProvider, TestablePreview {
private static let defaultFontContainer: AttributeContainer = {
var container = AttributeContainer()
container.font = UIFont.preferredFont(forTextStyle: .body)
+1 -1
View File
@@ -30,7 +30,7 @@ struct PillView: View {
}
}
struct PillView_Previews: PreviewProvider {
struct PillView_Previews: PreviewProvider, TestablePreview {
static var previews: some View {
PillView()
}