Skip to content

Commit 132567f

Browse files
authored
Ensure all adapted environment methods are public (#263)
1 parent 54d7ece commit 132567f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WorkflowUI/Sources/Screen/AdaptedEnvironmentScreen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ extension Screen {
101101
}
102102

103103
/// Wraps this screen in an `AdaptedEnvironmentScreen` with the given keypath and value.
104-
func adaptedEnvironment<Value>(
104+
public func adaptedEnvironment<Value>(
105105
keyPath: WritableKeyPath<ViewEnvironment, Value>,
106106
value: Value
107107
) -> AdaptedEnvironmentScreen<Self> {
108108
AdaptedEnvironmentScreen(wrapping: self, keyPath: keyPath, value: value)
109109
}
110110

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

0 commit comments

Comments
 (0)