diff --git a/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentThumbnailController.swift b/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentThumbnailController.swift index 8bc31e2c9c..015309c6ce 100644 --- a/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentThumbnailController.swift +++ b/Packages/ComposeUI/Sources/ComposeUI/Controllers/AttachmentThumbnailController.swift @@ -40,6 +40,7 @@ class AttachmentThumbnailController: ViewController { case .video, .gifv: let asset = AVURLAsset(url: url) let imageGenerator = AVAssetImageGenerator(asset: asset) + imageGenerator.appliesPreferredTrackTransform = true #if os(visionOS) #warning("Use async AVAssetImageGenerator.image(at:)") #else @@ -91,6 +92,7 @@ class AttachmentThumbnailController: ViewController { if type.conforms(to: .movie) { let asset = AVURLAsset(url: url) let imageGenerator = AVAssetImageGenerator(asset: asset) + imageGenerator.appliesPreferredTrackTransform = true #if os(visionOS) #warning("Use async AVAssetImageGenerator.image(at:)") #else diff --git a/Tusker/Screens/Gallery/VideoControlsViewController.swift b/Tusker/Screens/Gallery/VideoControlsViewController.swift index 860843b3d1..f99b52fd3e 100644 --- a/Tusker/Screens/Gallery/VideoControlsViewController.swift +++ b/Tusker/Screens/Gallery/VideoControlsViewController.swift @@ -265,10 +265,8 @@ private class VideoScrubbingControl: UIControl { private func updateFillLayerMask() { // I don't know where this animation is coming from - CATransaction.begin() - CATransaction.setDisableActions(true) fillMaskLayer.frame = CGRect(x: 0, y: 0, width: fractionComplete * bounds.width, height: 8) - CATransaction.commit() + fillMaskLayer.removeAllAnimations() } override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {