Skip to content

Commit

Permalink
fix build for Mac Catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
x401om committed Feb 17, 2023
1 parent 593a038 commit d7ccd13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ enum Environment {

static var displayResolution: DisplayResolution? {
{
#if os(macOS) || targetEnvironment(macCatalyst)
#if os(macOS)
return NSScreen.main?.frame.size
#elseif targetEnvironment(macCatalyst)
return Optional.some(UIScreen.main.bounds.size)
#else
return Optional.some(UIScreen.main.bounds.size)
#endif
Expand Down

0 comments on commit d7ccd13

Please sign in to comment.