{"id":26719889,"url":"https://github.com/truffls/view-transformers-ios","last_synced_at":"2025-06-22T06:07:04.748Z","repository":{"id":56926103,"uuid":"114151097","full_name":"truffls/view-transformers-ios","owner":"truffls","description":"ViewTransformers lets you pass multiple view transformations as an array to UIView.","archived":false,"fork":false,"pushed_at":"2018-05-25T10:24:43.000Z","size":449,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T06:06:51.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/truffls.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":"2017-12-13T17:44:13.000Z","updated_at":"2018-05-25T10:24:45.000Z","dependencies_parsed_at":"2022-08-21T04:20:48.614Z","dependency_job_id":null,"html_url":"https://github.com/truffls/view-transformers-ios","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/truffls/view-transformers-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truffls%2Fview-transformers-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truffls%2Fview-transformers-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truffls%2Fview-transformers-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truffls%2Fview-transformers-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truffls","download_url":"https://codeload.github.com/truffls/view-transformers-ios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truffls%2Fview-transformers-ios/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261244056,"owners_count":23129643,"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":"2025-03-27T18:29:40.219Z","updated_at":"2025-06-22T06:06:59.717Z","avatar_url":"https://github.com/truffls.png","language":"Swift","readme":"![alt text](https://github.com/truffls/view-transformers-ios/raw/master/readme-images/logo.png \"View Transformers\")\n\n![Swift Version](https://img.shields.io/badge/swift-4.1-orange.svg \"Swift 4.1\")\n![Platform Compatibility](https://img.shields.io/badge/platform-ios-lightgrey.svg \"Platform iOS\")\n![Pod version](https://img.shields.io/badge/pod-v1.1.0-blue.svg \"Pod version 1.1.0\")\n\nViewTransformers lets you pass multiple view transformations as an array to UIView.\n\n\n### Install via Cocoapods\n\nAdd following to your `Podfile`:\n\n```ruby\nuse_frameworks!\npod 'ViewTransformers'\n```\n\n### How to use\n\nYou can easily pass multiple view transformations to a UIView by using the `transforms` property on UIView.\n\n```swift\nview.transforms = [\n    CGAffineTransform(scaleX: 0.5, y: 0.5),\n    CGAffineTransform(rotationAngle: -1.42),\n    CGAffineTransform(translationX: 100, y: -145)\n]\n```\n\nReading the transforms property only returns the merged transformations as one in a one-item-array.\n\n\n### Example\n\n![alt text](https://github.com/truffls/view-transformers-ios/raw/master/readme-images/example.gif \"Example\")\n\nUsed code for the example:\n\n```swift\nfunc playAnimation() {\n    UIView.animate(withDuration: 1.0, delay: 1.0, options: .curveLinear, animations: {\n        self.myView.transforms = [\n            CGAffineTransform(scaleX: 0.5, y: 0.5),\n            CGAffineTransform(rotationAngle: -1.42),\n            CGAffineTransform(translationX: 100, y: -145)\n        ]\n    }, completion: { _ in\n        UIView.animate(withDuration: 1.0, delay: 1.0, options: .curveLinear, animations: {\n            self.myView.transforms = nil\n        }, completion: { _ in\n            self.playAnimation()\n        })\n    })\n}\n```\n\n### Contribution\n\nIssues and pull requests are welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruffls%2Fview-transformers-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruffls%2Fview-transformers-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruffls%2Fview-transformers-ios/lists"}