Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit bf4131b

Browse files
committed
refactor(TPTweakStore): make environment and related types public
Expose TPTweakStoreEnvironment and its properties to allow external access and customization
1 parent 5b34f2e commit bf4131b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Sources/TPTweak/TPTweakStore.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ internal typealias TPTweak = TPTweakStore
9797
*/
9898
public enum TPTweakStore {
9999
/// all side effect logic, also for unit testing
100-
internal static var environment: TPTweakStoreEnvironment = .live
100+
public static var environment: TPTweakStoreEnvironment = .live
101101
internal static var entries: [String: TPTweakEntry] = [:]
102102

103103
// MARK: - Interface
@@ -238,11 +238,11 @@ public enum TPTweakStore {
238238
}
239239
}
240240

241-
internal struct TPTweakStoreEnvironment {
242-
internal var isDebugMode: () -> Bool
243-
internal var provider: () -> UserDefaults
241+
public struct TPTweakStoreEnvironment {
242+
public var isDebugMode: () -> Bool
243+
public var provider: () -> UserDefaults
244244

245-
internal static var live: Self {
245+
public static var live: Self {
246246
TPTweakStoreEnvironment(
247247
isDebugMode: {
248248
#if TPTWEAK_ENABLE_RELEASE_MODE

0 commit comments

Comments
 (0)