diff --git a/Sources/View/InspectorWrapper.swift b/Sources/View/InspectorWrapper.swift index f198dab..90e5b74 100644 --- a/Sources/View/InspectorWrapper.swift +++ b/Sources/View/InspectorWrapper.swift @@ -22,9 +22,7 @@ struct InspectorWrapper: ConvenienceWidget { data: WidgetData, type: Data.Type ) -> ViewStorage where Data: ViewRenderData { - let storage = content.storage(data: data, type: type) - modify(storage, data, true) - return storage + content.storage(data: data, type: type) } /// Update the stored content. diff --git a/Sources/View/SafeWrapper.swift b/Sources/View/SafeWrapper.swift index d9531d8..5f4ec05 100644 --- a/Sources/View/SafeWrapper.swift +++ b/Sources/View/SafeWrapper.swift @@ -24,9 +24,7 @@ struct SafeWrapper: ConvenienceWidget { type: Data.Type ) -> ViewStorage where Data: ViewRenderData { let contentStorage = content.storage(data: data, type: type) - let storage = ViewStorage(contentStorage.pointer, content: [.mainContent: [contentStorage]]) - modify(storage, data, true) - return storage + return .init(contentStorage.pointer, content: [.mainContent: [contentStorage]]) } /// Update the stored content.