Skip to content

Commit 79307e9

Browse files
authored
Rename WithViewStore.debug to WithViewStore._printChanges (#2101)
1 parent 4c8e80c commit 79307e9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Sources/ComposableArchitecture/Internal/Deprecations.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import XCTestDynamicOverlay
55

66
// MARK: - Deprecated after 0.52.0
77

8+
extension WithViewStore {
9+
@available(*, deprecated, renamed: "_printChanges(_:)")
10+
public func debug(_ prefix: String = "") -> Self {
11+
self._printChanges(prefix)
12+
}
13+
}
14+
815
extension EffectPublisher where Failure == Never {
916
@available(iOS, deprecated: 9999, message: "Use 'Effect.run' and pass the action to 'send'.")
1017
@available(macOS, deprecated: 9999, message: "Use 'Effect.run' and pass the action to 'send'.")

Sources/ComposableArchitecture/SwiftUI/WithViewStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public struct WithViewStore<ViewState, ViewAction, Content: View>: View {
143143
///
144144
/// - Parameter prefix: A string with which to prefix all debug messages.
145145
/// - Returns: A structure that prints debug messages for all computations.
146-
public func debug(_ prefix: String = "") -> Self {
146+
public func _printChanges(_ prefix: String = "") -> Self {
147147
var view = self
148148
#if DEBUG
149149
view.prefix = prefix

0 commit comments

Comments
 (0)