Skip to content

Commit b3f8dde

Browse files
committed
Fix Swift concurrency error in tests
Add @mainactor to SwiftDataTablesTests class to allow creating SwiftDataTable (a UIView subclass) in test methods.
1 parent 1294454 commit b3f8dde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Example/SwiftDataTablesTests/SwiftDataTablesTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import XCTest
1010
import UIKit
1111
@testable import SwiftDataTables
1212

13+
@MainActor
1314
class SwiftDataTablesTests: XCTestCase {
1415

1516
func test_swiftDataTable_withConfigurationOptions_initialises() {

0 commit comments

Comments
 (0)