Skip to content

0.2.0

Choose a tag to compare

@SardorbekR SardorbekR released this 11 Jun 11:03
· 2 commits to main since this release

Custom overlays

  • SafeMediaImage is now generic over its overlay: pass a trailing overlay: closure receiving SafeMediaOverlayState to fully brand the intervention UI
  • SafeMediaOverlayState: resolved copy, canReveal/canReport flags, and a policy-guarded reveal() — custom overlays cannot bypass block or no-reveal policies
  • UIKit: overlayProvider: on SafeMediaImageView.configure(...); the redaction blur always stays beneath custom overlays

Redesigned defaults

  • Per-state SF Symbols (eye.slash.fill, lock.fill, gearshape.fill), headline/footnote typography, capsule buttons
  • Adaptive layout: small frames drop the icon and tighten padding so text wraps instead of truncating

Source note

Explicit SafeMediaImage type annotations must become SafeMediaImage<SensitiveMediaOverlay>; initializer call sites are unaffected.