{"id":1486,"url":"https://github.com/Alterplay/APKenBurnsView","last_synced_at":"2025-08-02T04:32:04.701Z","repository":{"id":50707269,"uuid":"56743679","full_name":"Alterplay/APKenBurnsView","owner":"Alterplay","description":"Ken Burns effect with face recognition!","archived":false,"fork":false,"pushed_at":"2020-04-24T13:50:05.000Z","size":42161,"stargazers_count":101,"open_issues_count":3,"forks_count":24,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-05T03:21:00.077Z","etag":null,"topics":["animation","ios","kenburns","kenburnsview","presentation","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Alterplay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-21T04:57:07.000Z","updated_at":"2025-06-30T20:30:56.000Z","dependencies_parsed_at":"2022-09-01T22:41:05.062Z","dependency_job_id":null,"html_url":"https://github.com/Alterplay/APKenBurnsView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Alterplay/APKenBurnsView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterplay%2FAPKenBurnsView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterplay%2FAPKenBurnsView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterplay%2FAPKenBurnsView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterplay%2FAPKenBurnsView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alterplay","download_url":"https://codeload.github.com/Alterplay/APKenBurnsView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterplay%2FAPKenBurnsView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334615,"owners_count":24233793,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["animation","ios","kenburns","kenburnsview","presentation","swift"],"created_at":"2024-01-05T20:15:47.575Z","updated_at":"2025-08-02T04:31:59.689Z","avatar_url":"https://github.com/Alterplay.png","language":"Swift","funding_links":[],"categories":["Media","UI"],"sub_categories":["Image","Other free courses"],"readme":"# APKenBurnsView\n\n![APKenBurnsView](/images/apkenburnsview_cover.png)\n\n[![Build Status](https://www.bitrise.io/app/226b97fe8ae35817.svg?token=tO-nUoKK1sFwQyoW9pkLcQ\u0026branch=master)](https://www.bitrise.io/app/226b97fe8ae35817)\n[![Version](https://img.shields.io/cocoapods/v/APKenBurnsView.svg?style=flat)](http://cocoapods.org/pods/APKenBurnsView)\n[![License](https://img.shields.io/cocoapods/l/APKenBurnsView.svg?style=flat)](http://cocoapods.org/pods/APKenBurnsView)\n[![Platform](https://img.shields.io/cocoapods/p/APKenBurnsView.svg?style=flat)](http://cocoapods.org/pods/APKenBurnsView)\n\n## ***Ken Burns effect with face recognition!***\n\nAPKenBurnsView is UIView subclass which supports face recognition to beautifully animate people photos.\n\n\n![APKenBurnsView](/images/demo.gif)\n\n\n## Features\n* Face recognition feature to beautifully animate people photos. \n* Totally random algorithm. No more hardcoded values!\n* Memory efficient. Holds maximum of two UIImage pointers at any moment.\n* Pausing animations done right. \n* Auto restart after entering background and returning back.\n* A lot of animation customizations to fit your needs.\n\n## Face Recognition\n\nAPKenBurnsView supports three modes for face recognition: \n* `None` - no face recognition, simple Ken Burns effect.\n* `Biggest` - recognizes biggest face in image, if any then transition will start or finish (chosen randomly) in center of face rect.\n* `Group` - recognizes all faces in image, if any then transition will start or finish (chosen randomly) in center of compound rect of all faces.\n\n\n## Usage\n\nJust simple interface. Provide data source class for UIImage's, setup all timings and run `startAnimations()`. No rocket science!\n\nData source should be ready to provide next image at the moment when APKenBurnsView calls `func nextImageForKenBurnsView(kenBurnsView: APKenBurnsView) -\u003e UIImage?`. If there is no UIImage ready (still loading from network, etc.) then data source should return `nil` and APKenBurnsView will animate last image one more time. If you are loading your images from network you should consider some preloading mechanism.\n\nExample of usage:\n```swift\nclass MyViewController: UIViewController {\n    // MARK: - Outlets \n    @IBOutlet weak var kenBurnsView: APKenBurnsView!\n\n    // MARK: - Lifecycle\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        kenBurnsView.dataSource = self\n        kenBurnsView.faceRecognitionMode = .Biggest\n        \n        kenBurnsView.scaleFactorDeviation = 0.5\n        kenBurnsView.imageAnimationDuration = 5.0\n        kenBurnsView.imageAnimationDurationDeviation = 1.0\n        kenBurnsView.transitionAnimationDuration = 2.0\n        kenBurnsView.transitionAnimationDurationDeviation = 1.0\n    }\n\n    override func viewDidAppear(animated: Bool) {\n        super.viewDidAppear(animated)\n\n        self.kenBurnsView.startAnimations()\n    }\n}\n    \nextension KenBurnsViewController: APKenBurnsViewDataSource {\n    func nextImageForKenBurnsView(kenBurnsView: APKenBurnsView) -\u003e UIImage? {\n        return /* Provide UIImage instance */\n    }\n}\n```\n\n## Example\n\nTo run the example project, clone the repo, and run pod install from the Example directory first.\n\n## Requirements\n\n- iOS 8.0 and higher\n- ARC\n\n## Installation\n\nAPKenBurnsView is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'APKenBurnsView'\n```\n\n## Author\n\nNickolay Sheika, hawk.ukr@gmail.com\n\n## Contacts\n\nIf you have improvements or concerns, feel free to post [an issue](https://github.com/Alterplay/APKenBurnsView/issues) and write details.\n\n[Check out](https://github.com/Alterplay) all Alterplay's GitHub projects.\n[Email us](mailto:hello@alterplay.com?subject=From%20GitHub%20APValidators) with other ideas and projects.\n\n## License\n\nAPKenBurnsView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlterplay%2FAPKenBurnsView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlterplay%2FAPKenBurnsView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlterplay%2FAPKenBurnsView/lists"}