Skip to content

Commit

Permalink
Exclude AppKit extensions to be compiled for macCatalyst (SwifterSwif…
Browse files Browse the repository at this point in the history
…t#762)

* Exclude AppKit extensions to be compiled for macCatalyst
  • Loading branch information
MaxHaertwig authored and Gheorghe Soltan committed Nov 19, 2019
1 parent e7bc723 commit b681067
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Expand Up @@ -36,10 +36,8 @@ The changelog for **SwifterSwift**. Also see the [releases](https://github.com/S
- Implemented `filled(withColor:)` using `UIGraphicsImageRenderer` when available. [#733](https://github.com/SwifterSwift/SwifterSwift/pull/733)
- Updated `kilobytesSize` to be computed independently from `bytesSize` [#753](https://github.com/SwifterSwift/SwifterSwift/pull/753) by [mmdock](https://github.com/mmdock)
- Updated `init?(base64String:)` to take in a `scale` factor paramater. [#753](https://github.com/SwifterSwift/SwifterSwift/pull/753) by [mmdock](https://github.com/mmdock)

- **UIImage**:
- Refactored `tint(_:blendMode:)` using UIGraphicsImageRenderer if available. [#731](https://github.com/SwifterSwift/SwifterSwift/pull/731) by [FraDeliro](https://github.com/FraDeliro).

- **Sequence**:
- Corrected documentation for `sorted(by:with:)` and `sorted(by:)`. [#751](https://github.com/SwifterSwift/SwifterSwift/pull/751) by [mmdock](https://github.com/mmdock)

Expand All @@ -48,6 +46,7 @@ The changelog for **SwifterSwift**. Also see the [releases](https://github.com/S
### Removed

### Fixed
- Fixed build error occurring when building AppKit extensions for macCatalyst. [#762](https://github.com/SwifterSwift/SwifterSwift/pull/762) by [MaxHaertwig](https://github.com/maxhaertwig).

### Security

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwifterSwift/AppKit/NSColorExtensions.swift
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 SwifterSwift
//

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

public extension NSColor {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwifterSwift/AppKit/NSImageExtensions.swift
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2017 SwifterSwift
//

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

// MARK: - Methods
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwifterSwift/AppKit/NSViewExtensions.swift
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2017 SwifterSwift
//

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

// MARK: - Properties
Expand Down

0 comments on commit b681067

Please sign in to comment.