{"id":22840826,"url":"https://github.com/rustunit/bevy_ios_impact","last_synced_at":"2025-04-28T10:49:59.960Z","repository":{"id":227536735,"uuid":"771699501","full_name":"rustunit/bevy_ios_impact","owner":"rustunit","description":"Allows using UI ImpactFeedback Generator API in Bevy Applications","archived":false,"fork":false,"pushed_at":"2025-01-13T17:11:09.000Z","size":99,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T07:00:51.213Z","etag":null,"topics":["bevy","gamedev","ios","objc","rust","uikit"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/bevy_ios_impact","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustunit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"github":"rustunit"}},"created_at":"2024-03-13T19:30:53.000Z","updated_at":"2025-01-13T17:11:13.000Z","dependencies_parsed_at":"2024-03-24T02:22:20.695Z","dependency_job_id":"a0c87ad9-34cc-43be-af10-47a7ea6cf183","html_url":"https://github.com/rustunit/bevy_ios_impact","commit_stats":null,"previous_names":["rustunit/bevy_ios_impact"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustunit%2Fbevy_ios_impact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustunit%2Fbevy_ios_impact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustunit%2Fbevy_ios_impact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustunit%2Fbevy_ios_impact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustunit","download_url":"https://codeload.github.com/rustunit/bevy_ios_impact/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251299575,"owners_count":21567251,"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":["bevy","gamedev","ios","objc","rust","uikit"],"created_at":"2024-12-13T01:13:33.874Z","updated_at":"2025-04-28T10:49:59.947Z","avatar_url":"https://github.com/rustunit.png","language":"Rust","funding_links":["https://github.com/sponsors/rustunit"],"categories":[],"sub_categories":[],"readme":"# bevy_ios_impact\n\n[![crates.io][sh_crates]][lk_crates]\n[![docs.rs][sh_docs]][lk_docs]\n[![discord][sh_discord]][lk_discord]\n\n[sh_crates]: https://img.shields.io/crates/v/bevy_ios_impact.svg\n[lk_crates]: https://crates.io/crates/bevy_ios_impact\n[sh_docs]: https://img.shields.io/docsrs/bevy_ios_impact\n[lk_docs]: https://docs.rs/bevy_ios_impact/latest/bevy_ios_impact/\n[sh_discord]: https://img.shields.io/discord/1176858176897953872?label=discord\u0026color=5561E6\n[lk_discord]: https://discord.gg/rQNeEnMhus\n\nExposes [UIImpactFeedbackGenerator](https://developer.apple.com/documentation/uikit/uiimpactfeedbackgenerator?language=objc) API via Bevy Resource.\n\nOn non-ios platforms this has no effect and will compile.\n\nusage:\n```\nbevy_ios_impact = { version = \"0.4\" }\n```\n\nExample:\n```rust\napp.add_plugins(bevy_ios_impact::ImpactPlugin);\n\nfn my_system(mut impacts: ResMut\u003cbevy_ios_impact::ImpactResource\u003e) {\n  // optional: haptic engine might be asleep if not prepared.\n  // in practice i never felt a delay, but see apple docs on this:\n  // https://developer.apple.com/documentation/uikit/uifeedbackgenerator?language=objc\n  impacts.prepare();\n\n  // triggere the impact with different impact strengths (or 'style')\n  impacts.impact(bevy_ios_impact::UIImpactFeedbackStyle::UIImpactFeedbackStyleHeavy);\n}\n```\n\n## Our Other Crates\n\n- [bevy_debug_log](https://github.com/rustunit/bevy_debug_log)\n- [bevy_device_lang](https://github.com/rustunit/bevy_device_lang)\n- [bevy_web_popups](https://github.com/rustunit/bevy_web_popups)\n- [bevy_libgdx_atlas](https://github.com/rustunit/bevy_libgdx_atlas)\n- [bevy_ios_review](https://github.com/rustunit/bevy_ios_review)\n- [bevy_ios_gamecenter](https://github.com/rustunit/bevy_ios_gamecenter)\n- [bevy_ios_alerts](https://github.com/rustunit/bevy_ios_alerts)\n- [bevy_ios_notifications](https://github.com/rustunit/bevy_ios_notifications)\n- [bevy_ios_iap](https://github.com/rustunit/bevy_ios_iap)\n- [bevy_ios_safearea](https://github.com/rustunit/bevy_ios_safearea)\n\n## Bevy version support\n\n|bevy|crate|\n|----|---|\n|0.16|0.4,main|\n|0.15|0.3|\n|0.14|0.2|\n|0.13|0.1|\n\n# License\n\nAll code in this repository is dual-licensed under either:\n\n- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)\n- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n\nat your option. This means you can select the license you prefer.\n\n## Your contributions\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustunit%2Fbevy_ios_impact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustunit%2Fbevy_ios_impact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustunit%2Fbevy_ios_impact/lists"}