We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ca765e commit d968b56Copy full SHA for d968b56
1 file changed
Core/Sources/HostApp/IsPreview.swift
@@ -0,0 +1,3 @@
1
+import Foundation
2
+
3
+var isPreview: Bool { ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" }
0 commit comments