Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ViewDebug #180

Merged
merged 5 commits into from
Dec 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/App/AppGraph.swift
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ package final class AppGraph: GraphHost {
}

private lazy var launchProfileOptions = LaunchProfileOptions(
rawValue: EnvironmentHelper.int32(for: "OPENSWIFTUI_PROFILE_LAUNCH")
rawValue: EnvironmentHelper.int32(for: "OPENSWIFTUI_PROFILE_LAUNCH") ?? 0
)

var didCollectLaunchProfile: Bool = false
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUICore/Graph/GraphInputs.swift
Original file line number Diff line number Diff line change
@@ -144,7 +144,7 @@ public struct _GraphInputs {

package var animationsDisabled: Bool {
get { options.contains(.animationsDisabled) }
set { options.formUnion(.animationsDisabled) }
set { options.setValue(newValue, for: .animationsDisabled) }
}

package var needsStableDisplayListIDs: Bool {
4 changes: 2 additions & 2 deletions Sources/OpenSwiftUICore/Util/EnvironmentHelper.swift
Original file line number Diff line number Diff line change
@@ -17,10 +17,10 @@ import WASILibc

package enum EnvironmentHelper {
@_transparent
package static func int32(for key: String) -> Int32 {
package static func int32(for key: String) -> Int32? {
key.withCString { string in
guard let env = getenv(string) else {
return 0
return nil
}
return atoi(env)
}
Loading