Skip to content

Commit e889f57

Browse files
committed
Fix build for Swift 6.0 and above
1 parent 91bcd5f commit e889f57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ViewInspector/BaseTypes.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ public protocol Inspectable { }
1515
@available(iOS 13.0, macOS 10.15, tvOS 13.0, *)
1616
public protocol CustomInspectable {
1717
associatedtype View: SwiftUI.View
18+
#if swift(>=6.0)
1819
@MainActor
20+
#endif
1921
var customInspectableContent: View { get }
2022
}
2123

0 commit comments

Comments
 (0)