Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to provide "hint" for Live Photo

In the iOS Human Interface Guidelines under the Live Photos section Apple says this,

"Make sure that users can distinguish a Live Photo from a traditional still photo. It’s especially important to help users make this distinction when they can share the photo. The best way to show users that they’re viewing a Live Photo is to display a little movement that gives a hint of the experience. In cases where a hint isn’t possible, you can display the system-provided badge on the Live Photo. A Live Photo never displays a playback button that looks like a video playback button."

I am kind of confused on how to provide that little hint of movement in my live photo. How do I provide that hint of movement?

like image 464
Harish Avatar asked Dec 30 '25 08:12

Harish


1 Answers

You don't need to dissect a Live Photo into still frames and construct an animated UIImage, or dig out the Live Photo's movie file... It's much simpler.

  1. Display your user's Live Photo content in a PHLivePhotoView.
  2. Call startPlaybackWithStyle: and pass .Hint for the playback style to get the "hint" that the HIG is talking about.
  3. There's no step three.
like image 145
rickster Avatar answered Dec 31 '25 23:12

rickster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!