Skip to content

Commit

Permalink
fix: Add #if os(macOS) macro
Browse files Browse the repository at this point in the history
  • Loading branch information
akring committed Mar 29, 2024
1 parent 5da0ee0 commit 9f97745
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Lib/KeyHolder/ClearButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Copyright © 2015-2020 Clipy Project.
//

#if os(macOS)
import Cocoa

final class ClearButton: NSButton {
Expand Down Expand Up @@ -85,3 +85,4 @@ final class ClearButton: NSButton {
// swiftlint:enable function_body_length

}
#endif
3 changes: 2 additions & 1 deletion Lib/KeyHolder/Extensions/NSColorExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Copyright © 2015-2020 Clipy Project.
//

#if os(macOS)
import AppKit

extension NSColor {
Expand All @@ -18,3 +18,4 @@ extension NSColor {
return NSColor(red: 0.525490196, green: 0.525490196, blue: 0.525490196, alpha: 1)
}()
}
#endif
3 changes: 2 additions & 1 deletion Lib/KeyHolder/RecordView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Copyright © 2015-2020 Clipy Project.
//

#if os(macOS)
import Cocoa
import Carbon
import Magnet
Expand Down Expand Up @@ -344,3 +344,4 @@ public extension RecordView {
case whenRecorded
}
}
#endif

0 comments on commit 9f97745

Please sign in to comment.