Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
yeatse committed Jan 9, 2024
1 parent dcce98b commit 64887ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Utility/DisplayLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#if !os(macOS)
#if !os(watchOS)
#if canImport(UIKit)
import UIKit
#else
import AppKit
Expand All @@ -45,7 +46,6 @@ protocol DisplayLinkCompatible: AnyObject {
}

#if !os(macOS)

extension UIView {
func compatibleDisplayLink(target: Any, selector: Selector) -> DisplayLinkCompatible {
return CADisplayLink(target: target, selector: selector)
Expand All @@ -55,7 +55,6 @@ extension UIView {
extension CADisplayLink: DisplayLinkCompatible {}

#else

extension NSView {
func compatibleDisplayLink(target: Any, selector: Selector) -> DisplayLinkCompatible {
if #available(macOS 14.0, *) {
Expand Down Expand Up @@ -155,3 +154,4 @@ class DisplayLink: DisplayLinkCompatible {
}
}
#endif
#endif

0 comments on commit 64887ab

Please sign in to comment.