diff --git a/Sources/ViewInspection/DummyObjects.swift b/Sources/ViewInspection/DummyObjects.swift index 9350a5d..d3f1515 100644 --- a/Sources/ViewInspection/DummyObjects.swift +++ b/Sources/ViewInspection/DummyObjects.swift @@ -10,11 +10,6 @@ import SwiftUI final class NSDummyDelegate: NSObject, NSApplicationDelegate {} #endif -final class DummyOnservableOnject: ObservableObject {} - -@available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *) -@Observable final class DummyOnservable {} - enum DummyEnum { case case0 case case1 diff --git a/Sources/ViewInspection/Generated/InspectableType+Dynamicproperty.swift b/Sources/ViewInspection/Generated/InspectableType+Dynamicproperty.swift index de46aa4..52e3d2f 100644 --- a/Sources/ViewInspection/Generated/InspectableType+Dynamicproperty.swift +++ b/Sources/ViewInspection/Generated/InspectableType+Dynamicproperty.swift @@ -9,14 +9,14 @@ typealias _Binding = SameBaseElement> typealias _Environment = SameBaseElement> -typealias _EnvironmentObject = SameBaseElement> +typealias _EnvironmentObject = SameBaseElement> typealias _FetchRequest = SameBaseElement> typealias _FocusedBinding = SameBaseElement> @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) -typealias _FocusedObject = SameBaseElement> +typealias _FocusedObject = SameBaseElement> typealias _FocusedValue = SameBaseElement> @@ -34,7 +34,7 @@ typealias _Namespace = SameBaseElement typealias _NSApplicationDelegateAdaptor = SameBaseElement> #endif -typealias _ObservedObject = SameBaseElement> +typealias _ObservedObject = SameBaseElement> typealias _ScaledMetric = SameBaseElement> @@ -44,7 +44,7 @@ typealias _SectionedFetchRequest = SameBaseElement> -typealias _StateObject = SameBaseElement> +typealias _StateObject = SameBaseElement> #if os(iOS) || os(tvOS) @available(macOS, unavailable) diff --git a/Tools/apple_parser.py b/Tools/apple_parser.py index bd7bc61..e3ff37d 100644 --- a/Tools/apple_parser.py +++ b/Tools/apple_parser.py @@ -68,8 +68,8 @@ def get_names(entity): 'UIApplicationDelegate': 'UIDummyDelegate', 'NSObject': 'NSObject', 'BinaryFloatingPoint': 'Double', - 'Onservable': 'DummyOnservable', - 'ObservableObject': 'DummyOnservableOnject', + 'Onservable': '_PreviewHost', + 'ObservableObject': '_PreviewHost', 'NSFetchRequestResult': 'NSDictionary', 'View' : 'Never', 'Shape': 'Circle',