Skip to content

Conversation

@rismay
Copy link
Member

@rismay rismay commented Aug 26, 2025

Summary

  • fix README to reflect current initializers and correct repository links
  • correct conditional compilation comment in Color+Extensions

Testing

  • swift test

https://chatgpt.com/codex/tasks/task_e_68ad724af158833393fed927a853a5e9

Copilot AI review requested due to automatic review settings August 26, 2025 09:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates documentation to align with the current color API implementation and fixes incorrect conditional compilation directives.

  • Updates README with correct repository URLs and current API usage patterns
  • Corrects conditional compilation comment from canImport(SwiftUI) to os(OSX)

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
README.md Updates repository links and API examples to reflect current implementation
Sources/WrkstrmColor/Color+Extensions.swift Fixes conditional compilation comment for NSColor extension

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}
}
#endif // canImport(SwiftUI)
#endif // os(OSX)
Copy link

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional compilation comment should match the actual directive being used. Since the code extension is for NSColor which is typically available on macOS, the comment should reflect the actual compilation condition (likely canImport(AppKit) or similar) rather than the deprecated os(OSX) identifier.

Suggested change
#endif // os(OSX)
#endif // canImport(AppKit)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants