{"id":13694640,"url":"https://github.com/ryanlintott/DefibHeart","last_synced_at":"2025-05-03T04:30:41.724Z","repository":{"id":115710152,"uuid":"495986929","full_name":"ryanlintott/DefibHeart","owner":"ryanlintott","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-24T21:20:17.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T02:23:09.495Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanlintott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-05-24T21:01:37.000Z","updated_at":"2023-08-27T23:32:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c47b9199-fed1-4b57-839f-d582bf30af1e","html_url":"https://github.com/ryanlintott/DefibHeart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlintott%2FDefibHeart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlintott%2FDefibHeart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlintott%2FDefibHeart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanlintott%2FDefibHeart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanlintott","download_url":"https://codeload.github.com/ryanlintott/DefibHeart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252144339,"owners_count":21701393,"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-08-02T17:01:36.275Z","updated_at":"2025-05-03T04:30:39.778Z","avatar_url":"https://github.com/ryanlintott.png","language":"Swift","readme":"# DefibHeart\n\nWe spend a lot of time looking at heart icons but not thinking about the organ they represent. I've had my life saved by a defibrillator and I now have one with me at all times in the form of a pacemaker. I thought it would be a nice to use a defib to bring a heart animation to life.\n\n![Defib Heart](https://user-images.githubusercontent.com/2143656/170134149-95c59fd9-4770-4ce2-b455-043589ef5fe0.gif)\n\n\n\n*Submission for [SwiftUISeries](https://www.swiftuiseries.com) - Animations*\n\n# How does it work?\n- All values are linked to a single size value so it can easily be resized.\n- I created an enum called Keyframe and cycled through the values to trigger each key of the animation in sequence. The delay parameter ensures each keyframe is appropriately staggered.\n- The beating heart at the end was a bit tricky and required a local .animation modifier to override the other animations.\n- The shapes are each drawn separately with some help from package I made called:\n\n\u003ca href=\"https://github.com/ryanlintott/ShapeUp\"\u003e\n  \u003cimg width=\"456\" alt=\"ShapeUp Logo\" src=\"https://user-images.githubusercontent.com/2143656/157464613-38fd35cc-7802-4cb7-914b-4da480a0411e.png\"\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":["Misc"],"sub_categories":["SwiftUI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanlintott%2FDefibHeart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanlintott%2FDefibHeart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanlintott%2FDefibHeart/lists"}