{"id":18484877,"url":"https://github.com/prscx/pxsiriwave9","last_synced_at":"2025-04-08T19:31:42.628Z","repository":{"id":62450331,"uuid":"127106590","full_name":"prscX/PXSiriWave9","owner":"prscX","description":"iOS: Siri Waveform effect similar to 9","archived":false,"fork":false,"pushed_at":"2018-06-24T07:14:55.000Z","size":4287,"stargazers_count":67,"open_issues_count":2,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T17:45:40.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/prscX.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":"2018-03-28T08:10:14.000Z","updated_at":"2024-12-17T11:09:50.000Z","dependencies_parsed_at":"2022-11-02T01:01:26.972Z","dependency_job_id":null,"html_url":"https://github.com/prscX/PXSiriWave9","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2FPXSiriWave9","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2FPXSiriWave9/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2FPXSiriWave9/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2FPXSiriWave9/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prscX","download_url":"https://codeload.github.com/prscX/PXSiriWave9/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912646,"owners_count":21017032,"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-11-06T12:43:26.769Z","updated_at":"2025-04-08T19:31:42.087Z","avatar_url":"https://github.com/prscX.png","language":"Objective-C","funding_links":["https://www.buymeacoffee.com/prscX"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/prscX/PXSiriWave9/pulls\"\u003e\u003cimg alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/prscX/PXSiriWave9#License\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/react-native-siri-wave-view.svg?style=flat\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n    PXSiriWave9: Objective-C\n\nIf this project has helped you out, please support us with a star 🌟\n\u003c/h1\u003e\n\n\n| |\n| ----------------- |\n| \u003cimg src=\"https://raw.githubusercontent.com/prscX/PXSiriWave9/master/assets/siriwave9.gif\" /\u003e                  |\n\n\n## 📖 Getting started\n\n- Please run below command in your app in order to install `cocoapods` required by the library:\n\n`pod init`\n\n`pod 'PXSiriWave', '~\u003e 0.0.2'`\n\n\n## 💻 Usage\n\n```objectivec\nPXSiriWave *siriWave = [[PXSiriWave alloc] initWithFrame: CGRectMake(0, 0, 1000, 1000)];\nsiriWave.frequency = 1.5;\nsiriWave.amplitude = 0.01;\nsiriWave.intensity = 0.3;\n\nsiriWave.colors = [NSArray arrayWithObjects: [UIColor brownColor], [UIColor blueColor], [UIColor blackColor], nil];\n\n\n[siriWave configure];\n\n[self.view addSubview: siriWave];\n\n```\n\n- **Start Animation**\n\nPlease setup `Timer` in order to animate waves:\n\n```objectivec\n    \n    NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval: 0.10\n    target:self\n    selector: @selector(targetMethod:)\n    userInfo: siriWave\n    repeats:YES];\n\n```\n\n- **Set Timer Target**\n\n```objectivec\n\n-(void)targetMethod:(NSTimer *)timer  {\n    PXSiriWave *siriWave = [timer userInfo];\n    \n    [siriWave updateWithLevel: [self _normalizedPowerLevelFromDecibels: .1]];\n}\n\n- (CGFloat)_normalizedPowerLevelFromDecibels:(CGFloat)decibels {\n    if (decibels \u003c -60.0f || decibels == 0.0f) {\n        return 0.0f;\n    }\n    \n    return powf((powf(10.0f, 0.05f * decibels) - powf(10.0f, 0.05f * -60.0f)) * (1.0f / (1.0f - powf(10.0f, 0.05f * -60.0f))), 1.0f / 2.0f);\n}\n\n```\n\n- **Stop Animation**\n\n```objectivec\n[timer invalidate];\ntimer = NULL;\n```\n\n\n## 💡 Properties\n\n\n| Prop              | Type       | Default | Note                                                                                                       |\n| ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- |\n| `amplitude`      | `number`     |    0.01     | Amplitude of Waves |\n| `frequency`      | `number`     |    1.5     | Frequency of Waves |\n| `intensity`      | `number`     |    0.3     | Specify intensity of wave |\n| `colors`      | `array`     |    [\"#2085fc\", \"#5efca9\", \"#fd4767\"]     | Specify colors of siri wave 9 colors |\n\n\n## ✨ Credits\n\n- Siri Wave 9 Implementation by: [GreatPotter](https://github.com/GreatPotter)\n\n## 🤔 How to contribute\nHave an idea? Found a bug? Please raise to [ISSUES](https://github.com/prscX/PXSiriWave9/issues).\nContributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.\n\n## 💫 Where is this library used?\nIf you are using this library in one of your projects, add it in this list below. ✨\n\n\n## 📜 License\nThis library is provided under the Apache License.\n\nPXSiriWave @ [prscX](https://github.com/prscX)\n\n## 💖 Support my projects\nI open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n* Starring and sharing the projects you like 🚀\n* If you're feeling especially charitable, please follow [prscX](https://github.com/prscX) on GitHub.\n\n  \u003ca href=\"https://www.buymeacoffee.com/prscX\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n  Thanks! ❤️\n  \u003cbr/\u003e\n  [prscX.github.io](https://prscx.github.io)\n  \u003cbr/\u003e\n  \u003c/ Pranav \u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprscx%2Fpxsiriwave9","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprscx%2Fpxsiriwave9","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprscx%2Fpxsiriwave9/lists"}