Skip to content

Releases

1.3.1

Choose a tag to compare

@quantumnoblesix quantumnoblesix released this 06 Oct 18:07

SwiftMediaEditor 1.3.1

A performance and polish release for the 1.3.0 gestures.

🐛 Fixed

  • Pinch to zoom is smooth. A pinch now only scales the picture; it no longer re-renders the photo on every frame. The sharp zoomed-in image is rendered in the background once you let go, and zooming back out is instant.
  • Edits while zoomed in are instant. An undo while zoomed in now shows at once and sharpens in the background, instead of freezing on a full-resolution render. Zoomed-in photos also use less memory, about 60 MB less for a 48 MP photo at 4×.
  • Swiping is more responsive. You can swipe to the next item and straight back without waiting for the animation to end. A new swipe picks up the pages from where they are on screen.
  • A swipe interrupted mid-slide, for example by the app going to the background, no longer leaves a frozen page over the media.
  • Catching a swipe as it springs back to a playing video no longer leaves the video paused.

Installation: .package(url: "https://github.com/quantumnoblesix/SwiftMediaEditor.git", from: "1.3.1")

Full details are in the changelog.

1.3.0

Choose a tag to compare

@quantumnoblesix quantumnoblesix released this 05 Oct 21:34

SwiftMediaEditor 1.3.0

Moving between media and looking at them up close in multi-item sessions now feels like a native gallery.

✨ New

  • Pinch to zoom. Pinch or double-tap a photo or video to zoom up to 4×. Stickers, text and drawings zoom with it. While zoomed in, a one-finger drag pans the media, and you can't drag past its edges. Photos are re-rendered at the zoomed resolution, so they stay sharp.

🔄 Changed

  • Tab-view-style paging. Dragging on empty canvas now moves the media with your finger while the next or previous item slides in beside it. It settles on whichever page you drag past halfway or flick to. Tapping a thumbnail in the strip slides that item in the same way. allowsSwipeBetweenItems still turns the drag off.
  • A single tap on the canvas now waits a moment to rule out a double-tap.

🐛 Fixed

  • Documents and GIFs (.passthrough items) no longer shrink the canvas to a sliver and stretch the bottom bar over the freed space.

Installation: .package(url: "https://github.com/quantumnoblesix/SwiftMediaEditor.git", from: "1.3.0")

Full details are in the changelog.

1.2.0

Choose a tag to compare

@quantumnoblesix quantumnoblesix released this 05 Oct 15:19

MediaEditor 1.2.0

Edit several photos and videos in one screen, then send them in the background.

Highlights

  • Multi-item sessions. MediaEditorView(items:selection:…) edits a whole selection at once. Each item keeps its own edits and undo history, and the bindings stay in sync both ways. Large photos load from disk only while they're on screen.
  • Thumbnail strip. It sits above your caption bar and shows each item with its edits. Tap to switch, tap the selected one twice to remove it, add more with an optional "+" cell, and swipe the canvas to page between items. Reordering is optional, and every gesture has a VoiceOver action.
  • Non-editable items. GIFs, documents and other files can join a session. They show with your own view, keep no edits, and are returned untouched.
  • Send now, render later. With finishMode = .recipesOnly, the editor hands back recipes straight away, so the screen can close on send.
  • EditRenderer. Renders a recipe exactly as the editor's own save does, from photos and videos to thumbnails, off the main thread where possible. It's also the editor's own save path now.

Fixes

  • Cancelling a video export as it starts no longer crashes.
  • An editor that's dismissed or swapped out stops its video and any export.
  • A large photo can no longer squash the bottom bar.
  • The space reserved for the bottom bar stays put while typing.

Upgrading

Source-compatible with 1.1.0: existing single-item code compiles and behaves as before.

Full changelog: CHANGELOG.md · 1.1.0...1.2.0

1.1.0

Choose a tag to compare

@quantumnoblesix quantumnoblesix released this 05 Oct 09:30

MediaEditor 1.1.0

A chat-style editing experience, plus edits that stay where you put them.

Highlights

  • Chat-style layout. EditorAppearance.messaging puts an ✕ and circular tool buttons across the top, like a messaging app's pre-send screen. toolbarPlacement (.top / .bottom) and toolbarStyle (.floatingBar / .circularButtons) let you mix and match.
  • Your own bottom bar. Pass a bottomAccessory (a UIKit view, or a SwiftUI builder with a MediaEditorProxy) for a caption field and send button. It follows the keyboard, respects the home indicator, and replaces the built-in Done button.
  • Edits stay on the media. Stickers and drawings now stay on the same spot of the photo or video when you crop, rotate or flip. Anything cropped out is kept and comes back if you widen the crop.
  • Drawing layers with stickers. New strokes go over existing picture stickers, stickers added later go on top, and text always stays readable above the ink.
  • Always dark. The editor and everything it presents use a dark appearance regardless of system settings. Pencil ink keeps its true colours.
  • Smoother tools. Crop shows your stickers and drawing while you adjust, the pencil draws in place with every other edit visible, and undo/redo appear only once there's something to undo.

Upgrading

Source-compatible with 1.0.0: existing code compiles unchanged, and recipes saved with 1.0 load and render as before. Note that the editor now always uses a dark appearance.

Full changelog: CHANGELOG.md · 1.0.0...1.1.0

1.0.0

Choose a tag to compare

@quantumnoblesix quantumnoblesix released this 12 Sep 10:32

The first release of SwiftMediaEditor: a native-feeling photo and video editor for iOS 17+ and Mac Catalyst, with drop-in SwiftUI and UIKit views and a headless, non-destructive core.

Highlights

  • Crop, rotate, and flip photos and videos, plus color filters for photos
  • PencilKit drawing, text, emoji, and image stickers, burned into the output
  • Video trimming, a play/pause preview with a time readout, and audio removal
  • Undo/redo, and re-opening an edit from a saved recipe
  • Separate tool sets for photos and videos, Liquid Glass styling, and custom toolbars
  • Localized in 5 languages, with DocC documentation and privacy manifests

Install

.package(url: "https://github.com/quantumnoblesix/SwiftMediaEditor.git", from: "1.0.0")

See the changelog for every feature and the known limitations.