diff --git a/Sources/Dependencies/Documentation.docc/Extensions/DependencyValues.md b/Sources/Dependencies/Documentation.docc/Extensions/DependencyValues.md index 644c3751..6ff73e24 100644 --- a/Sources/Dependencies/Documentation.docc/Extensions/DependencyValues.md +++ b/Sources/Dependencies/Documentation.docc/Extensions/DependencyValues.md @@ -12,6 +12,7 @@ - ``withDependencies(_:operation:)-4uz6m`` - ``withDependencies(from:operation:fileID:filePath:line:column:)`` +- ``prepareDependencies(_:)`` ### Escaping contexts diff --git a/Sources/Dependencies/Documentation.docc/Extensions/DependencyValuesUUID.md b/Sources/Dependencies/Documentation.docc/Extensions/DependencyValuesUUID.md index cae008e6..462d3362 100644 --- a/Sources/Dependencies/Documentation.docc/Extensions/DependencyValuesUUID.md +++ b/Sources/Dependencies/Documentation.docc/Extensions/DependencyValuesUUID.md @@ -5,3 +5,7 @@ ### Dependency value - ``UUIDGenerator`` + +### Helpers + +- ``Foundation/UUID`` diff --git a/Sources/Dependencies/Internal/AppEntryPoint.swift b/Sources/Dependencies/Internal/AppEntryPoint.swift index 4b66109b..980c013f 100644 --- a/Sources/Dependencies/Internal/AppEntryPoint.swift +++ b/Sources/Dependencies/Internal/AppEntryPoint.swift @@ -1,7 +1,7 @@ import Foundation extension Thread { - public static var isPreviewAppEntryPoint: Bool { + static var isPreviewAppEntryPoint: Bool { guard ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" else { return false } diff --git a/Sources/Dependencies/Internal/Deprecations.swift b/Sources/Dependencies/Internal/Deprecations.swift index 9fc6d42d..9f1234f9 100644 --- a/Sources/Dependencies/Internal/Deprecations.swift +++ b/Sources/Dependencies/Internal/Deprecations.swift @@ -10,6 +10,7 @@ Use 'withDependencies' or 'prepareDependencies' from the body of the preview, instead. """ ) + @_documentation(visibility:private) public static func dependency( _ keyPath: WritableKeyPath & Sendable, _ value: Value @@ -22,6 +23,7 @@ Use 'withDependencies' or 'prepareDependencies' from the body of the preview, instead. """ ) + @_documentation(visibility:private) public static func dependency( _ value: Value ) -> PreviewTrait where Value == Value.Value { @@ -33,6 +35,7 @@ Use 'withDependencies' or 'prepareDependencies' from the body of the preview, instead. """ ) + @_documentation(visibility:private) public static func dependencies( _ updateValuesForPreview: (inout DependencyValues) -> Void ) -> PreviewTrait { @@ -50,6 +53,7 @@ extension AsyncStream { @available(*, deprecated, renamed: "makeStream(of:bufferingPolicy:)") + @_documentation(visibility:private) public static func streamWithContinuation( _ elementType: Element.Type = Element.self, bufferingPolicy limit: Continuation.BufferingPolicy = .unbounded @@ -61,6 +65,7 @@ extension AsyncStream { extension AsyncThrowingStream where Failure == Error { @available(*, deprecated, renamed: "makeStream(of:throwing:bufferingPolicy:)") + @_documentation(visibility:private) public static func streamWithContinuation( _ elementType: Element.Type = Element.self, bufferingPolicy limit: Continuation.BufferingPolicy = .unbounded @@ -78,6 +83,7 @@ extension ActorIsolated { deprecated, message: "Use the non-async version of 'withValue'." ) + @_documentation(visibility:private) public func withValue( _ operation: @Sendable (inout Value) async throws -> T ) async rethrows -> T where Value: Sendable { @@ -93,6 +99,7 @@ extension AsyncStream where Element: Sendable { deprecated, message: "Do not configure streams with a buffering policy 'limit' parameter." ) + @_documentation(visibility:private) public init( _ sequence: S, bufferingPolicy limit: Continuation.BufferingPolicy @@ -122,6 +129,7 @@ extension AsyncThrowingStream where Element: Sendable, Failure == Error { deprecated, message: "Do not configure streams with a buffering policy 'limit' parameter." ) + @_documentation(visibility:private) public init( _ sequence: S, bufferingPolicy limit: Continuation.BufferingPolicy