File tree Expand file tree Collapse file tree
Sources/Inject/Integrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ public extension SwiftUI.View {
2626public struct ObserveInjection : DynamicProperty {
2727 @ObservedObject private var iO = InjectConfiguration . observer
2828 public init ( ) { }
29- public private( set) var wrappedValue : InjectConfiguration . Type = InjectConfiguration . self
29+ // Use a computed property rather than directly storing the value to work around https://github.com/swiftlang/swift/issues/62003
30+ public var wrappedValue : InjectConfiguration . Type { InjectConfiguration . self }
3031}
3132
3233#else
@@ -45,7 +46,8 @@ public extension SwiftUI.View {
4546@propertyWrapper @MainActor
4647public struct ObserveInjection : DynamicProperty {
4748 public init ( ) { }
48- public private( set) var wrappedValue : InjectConfiguration . Type = InjectConfiguration . self
49+ // Use a computed property rather than directly storing the value to work around https://github.com/swiftlang/swift/issues/62003
50+ public var wrappedValue : InjectConfiguration . Type { InjectConfiguration . self }
4951}
5052#endif
5153#endif
You can’t perform that action at this time.
0 commit comments