Move maxScreenScale to RSImage-Extensions. Mark IconScalerQueue as @unchecked Sendable (because it is).

This commit is contained in:
Brent Simmons
2024-03-23 11:45:16 -07:00
parent d2d86fc782
commit 0ecd219bae
2 changed files with 16 additions and 13 deletions

View File

@@ -20,14 +20,6 @@ public typealias RSImage = UIImage
public extension RSImage {
#if os(macOS)
static let maxScreenScale = CGFloat(2)
#endif
#if os(iOS)
static let maxScreenScale = CGFloat(3)
#endif
/// Create a colored image from the source image using a specified color.
///
/// - Parameter color: The color with which to fill the mask image.