Add feature to display image instead of file path and document preview feature #1112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to improve clipboard handling, enhance code maintainability, and update configuration defaults. The most significant updates include better handling of image files in the clipboard, modularizing clipboard-related logic into extensions, and updating default application settings.
Clipboard Enhancements:
.jpeg,.heic) in thesupportedTypesset and introduced logic to handle image file URLs, ensuring that both file URLs and image data are processed appropriately. (Maccy/Clipboard.swift, [1] [2] [3] [4] [5]Clipboard+ImageHandling.swift, improving code organization. (Maccy/Extensions/Clipboard+ImageHandling.swift, Maccy/Extensions/Clipboard+ImageHandling.swiftR1-R59)Code Refactoring:
Clipboard+Validation.swift,Clipboard+Operations.swift), enhancing readability and maintainability. (Maccy/Extensions/Clipboard+Validation.swift, [1];Maccy/Extensions/Clipboard+Operations.swift, [2]Clipboardinternal to improve accessibility for extensions. (Maccy/Clipboard.swift, Maccy/Clipboard.swiftR22-R43)Configuration Updates:
.swiftlint.ymlto include file length warnings and errors, ensuring better adherence to coding standards. (.swiftlint.yml, .swiftlint.ymlR7-R9)Maccy/Extensions/Defaults.Keys+Names.swift, [1] [2]Minor Code Improvements:
[weak self]in asynchronous code. (Maccy/AppDelegate.swift, Maccy/AppDelegate.swiftL163-R164)creditsproperty. (Maccy/About.swift, Maccy/About.swiftL26-R29)