Update minimal iOS version to 11+LightCompressor is compatible with iOS 11+ by removing @available(iOS 14.0, *) from class declaration.
Add macOS supportLightCompressor is compatible with macOS by removing unused import UIKit.
Saving to gallery possible using saveInGallery flag from iOSConfig (requires macOS 10.15+).
For now I just copied Swift code from iOS and modified it a bit to support macOS, but Swift code can be shared between iOS and macOS using symlinks in future.
Update minimal iOS version to 11+ LightCompressor is compatible with iOS 11+ by removing
@available(iOS 14.0, *)
from class declaration.Add macOS support LightCompressor is compatible with macOS by removing unused
import UIKit
. Saving to gallery possible usingsaveInGallery
flag fromiOSConfig
(requires macOS 10.15+).For now I just copied Swift code from iOS and modified it a bit to support macOS, but Swift code can be shared between iOS and macOS using symlinks in future.