From 67319287749b83f39dcc2f20edd520c610c012fd Mon Sep 17 00:00:00 2001 From: Alexey Naumov Date: Sun, 21 Jan 2024 22:52:33 +0600 Subject: [PATCH] Fix tests for macos --- Tests/ViewInspectorTests/CustomInspectableTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/ViewInspectorTests/CustomInspectableTests.swift b/Tests/ViewInspectorTests/CustomInspectableTests.swift index 8c7a0331..660d6a88 100644 --- a/Tests/ViewInspectorTests/CustomInspectableTests.swift +++ b/Tests/ViewInspectorTests/CustomInspectableTests.swift @@ -2,6 +2,7 @@ import XCTest import SwiftUI @testable import ViewInspector +#if os(iOS) || os(tvOS) @available(iOS 13.0, macOS 10.15, tvOS 13.0, *) final class CustomInspectableTests: XCTestCase { @@ -33,3 +34,4 @@ private struct CustomViewRepresentable: UIViewRepresentable, CustomInspectable { func updateUIView(_ view: UIView, context: Context) { } } +#endif