Skip to content

1.17.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 05:01

Added

  • HexColor.colorFamily and the ColorFamily enum (11 families), sharing one classification with colorDisplayName, which is unchanged.
  • BlockingCallAdmission.limiter(BlockingCallLimiter), so background work can bound its blocking calls without taking the shared slots.
  • Perspective correction in the crop model: CropEdit.vertical and horizontal (degrees of keystone, at a constant 28 mm focal length), PerspectiveOrder and CropEdit.perspectiveOrder (two-axis composition matched to Photos), and Homography, a 3x3 projective map. Containment, the largest centered crop, orientation mapping and CropCanvas follow it; with no perspective every result is unchanged bit for bit.
  • CameraRawCrop converts between a displayed CropEdit and Adobe Camera Raw's crs:CropTop/Left/Bottom/Right/Angle, including Vertical and Horizontal perspective in Lightroom's units (PerspectiveOrder.combined, each axis mapped, snapped and limited on its own), plus cameraRawPerspectiveReach. CropEdit.oriented(fileOrientation:) is the inverse of unoriented. Checked against crops Lightroom Classic wrote.
  • ColorCodePoints: a picture's tagged color as ITU-T H.273 primaries, transfer and matrix, with Rec. 709 and Rec. 2020 HLG named.
  • URL.usesXMPSidecar, URL.xmpSidecarURL and URL.existingXMPSidecarURL: the sidecar rule for camera RAW files other than DNG.
  • DefaultFilledDecodable and JSONDecoder.decode(_:from:fillingGapsFrom:), which merge stored JSON over a default value's JSON before decoding strictly, so keys a type gained since the value was written take their defaults at any depth.

Changed

  • BlockingCallLimiter.run is nonisolated(nonsending), so its body runs on the caller's executor and an actor can admit a call that uses its own state.