Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WorkflowUI/Sources/Screen/AdaptedEnvironmentScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ extension Screen {
}

/// Wraps this screen in an `AdaptedEnvironmentScreen` with the given keypath and value.
func adaptedEnvironment<Value>(
public func adaptedEnvironment<Value>(
keyPath: WritableKeyPath<ViewEnvironment, Value>,
value: Value
) -> AdaptedEnvironmentScreen<Self> {
AdaptedEnvironmentScreen(wrapping: self, keyPath: keyPath, value: value)
}

/// Wraps this screen in an `AdaptedEnvironmentScreen` with the given configuration block.
func adaptedEnvironment(
public func adaptedEnvironment(
adapting: @escaping (inout ViewEnvironment) -> Void
) -> AdaptedEnvironmentScreen<Self> {
AdaptedEnvironmentScreen(wrapping: self, adapting: adapting)
Expand Down