{"id":13838544,"url":"https://github.com/victorpanitz/iOS-BreathAnimation-AppleWatch-","last_synced_at":"2025-07-10T23:31:27.622Z","repository":{"id":150037718,"uuid":"163235894","full_name":"victorpanitz/iOS-BreathAnimation-AppleWatch-","owner":"victorpanitz","description":"A simple approach implementing Breath animation (Apple Watch app).","archived":false,"fork":false,"pushed_at":"2018-12-28T02:02:52.000Z","size":77,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-21T02:33:28.941Z","etag":null,"topics":["animation","apple","applewatch","design","ios","iphone","swift","swift4","ui","xcode"],"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/victorpanitz.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,"publiccode":null,"codemeta":null}},"created_at":"2018-12-27T02:10:48.000Z","updated_at":"2022-03-28T20:33:02.000Z","dependencies_parsed_at":"2023-04-05T05:59:15.392Z","dependency_job_id":null,"html_url":"https://github.com/victorpanitz/iOS-BreathAnimation-AppleWatch-","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorpanitz/iOS-BreathAnimation-AppleWatch-","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorpanitz%2FiOS-BreathAnimation-AppleWatch-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorpanitz%2FiOS-BreathAnimation-AppleWatch-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorpanitz%2FiOS-BreathAnimation-AppleWatch-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorpanitz%2FiOS-BreathAnimation-AppleWatch-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorpanitz","download_url":"https://codeload.github.com/victorpanitz/iOS-BreathAnimation-AppleWatch-/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorpanitz%2FiOS-BreathAnimation-AppleWatch-/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264687866,"owners_count":23649576,"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":["animation","apple","applewatch","design","ios","iphone","swift","swift4","ui","xcode"],"created_at":"2024-08-04T16:00:20.762Z","updated_at":"2025-07-10T23:31:27.617Z","avatar_url":"https://github.com/victorpanitz.png","language":"Swift","funding_links":[],"categories":["Sample Apps"],"sub_categories":["Blog"],"readme":"# Breath Animation (Smartch Watch App)\nA simple approach implementing Breath animation (Apple Watch app).\n\n![alt text](https://media.giphy.com/media/4W1OIQ6hFBUbRtnTac/giphy.gif)\n\n\u003cbr\u003e\n\n---\n\n## Flexible\n\nThis model is able to receive animation settings as duration, repeat count and autoreverse. Generate your breath animating using \u003cb\u003e`BreathLayerGenerator`\u003c/b\u003e choosing the number of circles you want.\n\n\u003cbr\u003e\n\n```Swift \nimport UIKit\n\nfinal class BreathViewController: UIViewController {\n    \n    var generator: BreathLayerGenerator?\n    var animator: BreathAnimator?\n    lazy var layers = [CAShapeLayer]()\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \n        view.backgroundColor = .black\n        \n        generator = BreathLayerGenerator(center: view.center)\n        animator = BreathAnimator(duration: 4, repeatCount: 3, autoreverse: true)\n        \n        setupBreath()\n    }\n    \n    private func setupBreath(){\n        guard let layers = generator?.generateLayers(numberOfLayers: 6) else { return }\n        layers.forEach { view.layer.addSublayer($0) }\n        \n        animator?.animate(layers: layers)\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorpanitz%2FiOS-BreathAnimation-AppleWatch-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorpanitz%2FiOS-BreathAnimation-AppleWatch-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorpanitz%2FiOS-BreathAnimation-AppleWatch-/lists"}