Skip to content

ScreenRim 1.0.0-beta1

Pre-release
Pre-release

Choose a tag to compare

@Dean151 Dean151 released this 29 Nov 12:21

First beta of 1.0.0. RecordingOverlay is now ScreenRim, rebuilt for scene-based apps, Swift 6, and the screens of current devices.

⚠️ Breaking changes

  • Renamed to ScreenRim. The package, the product and the module are now ScreenRim. Replace import RecordingOverlay with import ScreenRim. The RecordingOverlay class stays available as a deprecated alias of ScreenRim, so the rest of your code keeps compiling, with warnings. The old repository URL redirects to the new one.
  • Requires iOS 15 or tvOS 15, and Xcode 16 (was iOS 9 and Xcode 10.2).
  • Swift Package Manager only. CocoaPods and Carthage are no longer supported.
  • isAnimated is renamed isBreathing. The old name stays as a deprecated alias.
  • disableInteractions(exceptFor: UIView?) has no default value anymore, since it made disableInteractions() ambiguous.
  • The deprecated screen setter is gone: the overlay attaches to a window scene instead.

✨ New

  • UIScene life cycle support, which the iOS 27 SDK requires. Pass a scene with ScreenRim(windowScene:) or ScreenRim.show(on:animated:). Without one, the overlay attaches to the active scene when shown.
  • Follows the real screen corners. On iOS 26 and later, the border uses the radius of each corner as reported by UIKit, including devices with uneven corners like the iPhone Duo. Before iOS 26, the radius is looked up from the device screen instead of guessed from the safe area.
  • Follows the window corners when the window isn't fullscreen, like iPad windowed apps, on iOS 26 and later.
  • cornerRadius overrides the automatic radius, if a device ever needs it.
  • isVisible tells whether the overlay is on screen.
  • Swift 6 strict concurrency. ScreenRim is isolated to the main actor.

🐛 Fixes

  • Disabling the breathing animation no longer freezes the show and hide animations, which could leave the overlay never shown, or never hidden and retained forever.
  • Calling show() during a hide animation keeps the overlay shown, growing the border back from its current width.
  • A hide, show, hide sequence no longer cuts the second hide animation short. A second hide() during the hide animation is ignored.
  • hide(animated: false) now releases the overlay.
  • The overlay shows above the app windows.
  • The interactions state survives hiding, and the overlay only takes the key window while it's visible.
  • The views allowed through when interactions are disabled aren't retained anymore. Hidden ancestors, and views covering them, now block the events.
  • Corners use continuous curves, like the screen ones.

Installation

.package(url: "https://github.com/Dean151/ScreenRim.git", from: "1.0.0-beta1")

Full changelog: 0.3.2...1.0.0-beta1