From 10284703965684d63af8440d3ab8fe17c84b956b Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Sun, 29 Dec 2024 08:06:07 +1300 Subject: [PATCH] Better comments in sample projects --- .../ExampleMultiProjectIntegration/Views/ExampleApp.swift | 2 +- .../ExampleProjectIntegration/Views/ExampleApp.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/ExampleMultiProjectIntegration/ExampleMultiProjectIntegration/Views/ExampleApp.swift b/Examples/ExampleMultiProjectIntegration/ExampleMultiProjectIntegration/Views/ExampleApp.swift index 9d86a954..1996fdb2 100644 --- a/Examples/ExampleMultiProjectIntegration/ExampleMultiProjectIntegration/Views/ExampleApp.swift +++ b/Examples/ExampleMultiProjectIntegration/ExampleMultiProjectIntegration/Views/ExampleApp.swift @@ -23,7 +23,7 @@ import SafeDI import Subproject import SwiftUI -// @Instantiable macro marks this type as capable of being instantiated by SafeDI. +// @Instantiable macro marks this type as capable of being instantiated by SafeDI. The `isRoot` parameter marks this type as being the root of the dependency tree. @Instantiable(isRoot: true) @MainActor @main diff --git a/Examples/ExampleProjectIntegration/ExampleProjectIntegration/Views/ExampleApp.swift b/Examples/ExampleProjectIntegration/ExampleProjectIntegration/Views/ExampleApp.swift index afb60212..dfde07af 100644 --- a/Examples/ExampleProjectIntegration/ExampleProjectIntegration/Views/ExampleApp.swift +++ b/Examples/ExampleProjectIntegration/ExampleProjectIntegration/Views/ExampleApp.swift @@ -22,7 +22,7 @@ import Combine import SafeDI import SwiftUI -// @Instantiable macro marks this type as capable of being instantiated by SafeDI. +// @Instantiable macro marks this type as capable of being instantiated by SafeDI. The `isRoot` parameter marks this type as being the root of the dependency tree. @Instantiable(isRoot: true) @MainActor @main