Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for Querying and Setting the Playback Timestamp in PINAnimatedImageView#623

Draft
kylehowells wants to merge 2 commits intopinterest:master from
losfelizengineering:master
Draft

Add support for Querying and Setting the Playback Timestamp in PINAnimatedImageView #623
kylehowells wants to merge 2 commits intopinterest:master from
losfelizengineering:master

Conversation

@kylehowells
Copy link

@kylehowells kylehowells commented Oct 14, 2022
edited
Loading

If you have GIFs in a table view or collection view and you want to let them scroll off screen, then back on screen, and resume playback from the same frame, as if they were never unloaded you need to be able to save the current playback timestamp and then resume playback from that timestamp.

Added 3 new public methods to PINAnimatedImageView to achieve this.

@property (nonatomic, readonly) CFTimeInterval lastDisplayedTimestamp;
-(void)setCurrentTimestamp:(CFTimeInterval)newTimestamp;
-(void)setAnimatedImage:(PINCachedAnimatedImage*)image atTimestamp:(CFTimeInterval)newTimestamp

@kylehowells kylehowells changed the title (削除) Add support for Querying and Setting the playback timestamp in PINAnimatedImageView (削除ここまで) (追記) Add support for Querying and Setting the Playback Timestamp in PINAnimatedImageView (追記ここまで) Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /