Skip to content

Commit 299be88

Browse files
committed
Removes HostingController on accessibility snapshot
1 parent 196c32b commit 299be88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/TestingExtensions/SnapshotTestBase.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ open class SnapshotTestBase: XCTestCase {
111111

112112
guard let a11ySnapshotDevices else { return }
113113
a11ySnapshotDevices.forEach { config in
114-
let vc = UIHostingController(rootView: view)
115114
assertSnapshot(
116-
of: vc,
115+
of: view,
117116
as: .accessibilityImage(showActivationPoints: .always),
118117
file: file,
119118
testName: "\(testName)-\(config.name)-accessibility",

0 commit comments

Comments
 (0)