Skip to content

Commit eb29001

Browse files
committed
Fix internal import issue for OPENSWIFTUI_SWIFT_LOG=1
1 parent 5a6a3e0 commit eb29001

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Sources/OpenSwiftUI/Core/Log/Log.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Status: Complete
77

88
#if OPENSWIFTUI_SWIFT_LOG
9-
internal import Logging
9+
import Logging
1010
#else
1111
import os
1212
#if DEBUG
@@ -38,10 +38,10 @@ enum Log {
3838
}
3939

4040
#if OPENSWIFTUI_SWIFT_LOG
41+
@usableFromInline
4142
static let runtimeIssuesLog = Logger(label: "OpenSwiftUI")
4243

4344
@_transparent
44-
@inline(__always)
4545
static func runtimeIssues(
4646
_ message: @autoclosure () -> StaticString,
4747
_ args: @autoclosure () -> [CVarArg] = []
@@ -55,7 +55,6 @@ enum Log {
5555
static var runtimeIssuesLog = OSLog(subsystem: "com.apple.runtime-issues", category: "OpenSwiftUI")
5656

5757
@_transparent
58-
@inline(__always)
5958
static func runtimeIssues(
6059
_ message: @autoclosure () -> StaticString,
6160
_ args: @autoclosure () -> [CVarArg] = []

Sources/OpenSwiftUI/Data/Environment/Environment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
internal import OpenGraphShims
1010
#if OPENSWIFTUI_SWIFT_LOG
11-
internal import Logging
11+
import Logging
1212
#else
1313
import os
1414
#endif

0 commit comments

Comments
 (0)