Skip to content

Commit

Permalink
Merge pull request #4254 from CAPIStkidd/master
Browse files Browse the repository at this point in the history
fix #4233. Changes to fix Catalyst compatibility
  • Loading branch information
liuxuan30 authored Jan 20, 2020
2 parents 61ba666 + 6625688 commit a1dbbb7
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 a1dbbb7

Please sign in to comment.