{"id":16682288,"url":"https://github.com/jpsim/jpsdisplaylink","last_synced_at":"2026-03-13T15:30:28.463Z","repository":{"id":13206751,"uuid":"15890701","full_name":"jpsim/JPSDisplayLink","owner":"jpsim","description":"JPSDisplayLink provides an easy block interface to CADisplayLink-based animations.","archived":false,"fork":false,"pushed_at":"2014-02-11T22:50:48.000Z","size":230,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T07:19:28.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpsim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-14T03:31:27.000Z","updated_at":"2019-08-13T15:33:38.000Z","dependencies_parsed_at":"2022-08-01T02:38:51.050Z","dependency_job_id":null,"html_url":"https://github.com/jpsim/JPSDisplayLink","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jpsim/JPSDisplayLink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FJPSDisplayLink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FJPSDisplayLink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FJPSDisplayLink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FJPSDisplayLink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpsim","download_url":"https://codeload.github.com/jpsim/JPSDisplayLink/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpsim%2FJPSDisplayLink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261628967,"owners_count":23186945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T14:06:56.077Z","updated_at":"2026-03-13T15:30:28.352Z","avatar_url":"https://github.com/jpsim.png","language":"Objective-C","readme":"# JPSDisplayLink\n\nJPSDisplayLink provides an easy block interface to CADisplayLink-based animations.\n\nThis is ideal for animating properties that don't support UIView-based animations like font size on a UILabel or UITextView.\n\n## Installation\n\n### From CocoaPods\n\nAdd `pod 'JPSDisplayLink'` to your Podfile.\n\n### Manually\n\n_**Important note if your project doesn't use ARC**: you must add the `-fobjc-arc` compiler flag to `JPSDisplayLink.m` in Target Settings \u003e Build Phases \u003e Compile Sources._\n\nDrag the `JPSDisplayLink/JPSDisplayLink` folder into your project.\n\n## Usage\n\nJPSDisplayLink only has one class method:\n\n```objective-c\ntypedef void (^JPSDisplayLinkBlock)(CGFloat progress);\n\n+ (void)runDisplayLinkWithDuration:(CFTimeInterval)duration block:(JPSDisplayLinkBlock)block;\n```\n\nA JPSDisplayLink object will be created and implicitly retained for the duration specified, then it is automatically released.\n\n_**Make sure you follow proper block etiquette when using JPSDisplayLinkBlock**: for example, avoid retain cycles._\n\n## Easing\n\nAdd easing to your JPSDisplayLink animations by manipulating the `progress` parameter in your animation block.\n\nFor example, to animate a font size with cubic ease in/out, add [AHEasing](https://github.com/warrenm/AHEasing) to your project and use the following code:\n\n```objective-c\n[JPSDisplayLink runDisplayLinkWithDuration:5.0f block:^(CGFloat progress) {\n    CGFloat easedProgress = CubicEaseInOut(progress);\n    weakLabel.font = [UIFont boldSystemFontOfSize:12.0f + easedProgress*16.0f];\n}];\n```\n\n### Demo\n\nSee sample Xcode project in `/JPSDisplayLinkDemo`.\n\nHere's a GIF of the demo app in action. Note that the GIF's framerate is much slower than in reality.\n\n![Demo GIF](demo.gif)\n\n## License\n\nThis project is under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpsim%2Fjpsdisplaylink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpsim%2Fjpsdisplaylink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpsim%2Fjpsdisplaylink/lists"}