Skip to content

Commit

Permalink
Changes to fix Catalyst compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
CAPIStkidd committed Jan 2, 2020
1 parent 61ba666 commit 6625688
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Charts/Utils/Platform+Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extension UIColor
}
#endif

#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)

import AppKit

Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Utils/Platform+Gestures.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extension NSUIPinchGestureRecognizer
#endif

// MARK: - AppKit
#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import AppKit

public typealias NSUIGestureRecognizer = NSGestureRecognizer
Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Utils/Platform+Graphics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func NSUIGraphicsBeginImageContextWithOptions(_ size: CGSize, _ opaque: Bool, _
#endif

// MARK: - AppKit
#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import AppKit

func NSUIGraphicsGetCurrentContext() -> CGContext?
Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Utils/Platform+Touch Handling.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ extension UIView
#endif


#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import AppKit

public typealias NSUIEvent = NSEvent
Expand Down

0 comments on commit 6625688

Please sign in to comment.