Fix Swift 6 concurrency warning for showDebugLogs

Mark showDebugLogs as nonisolated(unsafe) to resolve the 'static property is not concurrency-safe' error. This is appropriate for a debug flag that is typically set once at app launch.
This commit is contained in:
Matt Bruce 2026-01-04 12:36:22 -06:00
parent 9f4046bfd2
commit 40d1285c38

View File

@ -25,7 +25,7 @@ public enum Design {
// MARK: - Debug
/// Set to true to enable debug logging in Bedrock.
public static let showDebugLogs = true
nonisolated(unsafe) public static var showDebugLogs = true
/// Logs a message only in debug builds when `showDebugLogs` is enabled.
public static func debugLog(_ message: String) {