Skip to content

Commit

Permalink
Merge pull request #1 from stonko1994/feature/add-preview-detection-h…
Browse files Browse the repository at this point in the history
…elper

Add `isPreview` detection helper
  • Loading branch information
stonko1994 authored May 24, 2023
2 parents d1ffdcc + faa41bb commit e18b89e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public let isPreview = ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1"

0 comments on commit e18b89e

Please sign in to comment.