From bd20881e8b4e0d7ae1e8ebe83dfa7522e6dfe723 Mon Sep 17 00:00:00 2001 From: Nayanda Haberty Date: Sun, 17 Mar 2024 03:18:00 +0700 Subject: [PATCH] Add AnyView as Stubbed default value (#4) --- .../Utilities/DefaultValueGenerator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftEnvironmentMacro/Utilities/DefaultValueGenerator.swift b/Sources/SwiftEnvironmentMacro/Utilities/DefaultValueGenerator.swift index 65aa976..3049af3 100644 --- a/Sources/SwiftEnvironmentMacro/Utilities/DefaultValueGenerator.swift +++ b/Sources/SwiftEnvironmentMacro/Utilities/DefaultValueGenerator.swift @@ -33,7 +33,8 @@ let baseDefaultValues: [String: String] = [ "CGFloat": "0", "CGSize": ".zero", "CGPoint": ".zero", "CGRect": ".zero", "NSNumber": "0", "NSString": "\"\"", "NSNull": "NSNull()", "NSObject": "NSObject()", "NSData": "NSData()", "NSDate": "NSDate()", "NSSet": "NSSet()", "NSArray": "NSArray()", - "NSSize": ".zero", "NSPoint": ".zero", "NSRect": ".zero" + "NSSize": ".zero", "NSPoint": ".zero", "NSRect": ".zero", + "AnyView": "AnyView(EmptyView())" ] private extension String {