{"id":19146679,"url":"https://github.com/mukeshsolanki/otpview-swiftui","last_synced_at":"2025-04-19T13:34:35.746Z","repository":{"id":174645274,"uuid":"652546398","full_name":"mukeshsolanki/otpview-swiftui","owner":"mukeshsolanki","description":"OTP/PinView for swift ui","archived":false,"fork":false,"pushed_at":"2023-06-12T10:41:40.000Z","size":379,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-02T05:23:07.122Z","etag":null,"topics":["authentication","custom","otp","otpview","pinview","swiftui","view"],"latest_commit_sha":null,"homepage":"","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/mukeshsolanki.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-12T09:41:47.000Z","updated_at":"2024-04-08T11:05:50.000Z","dependencies_parsed_at":"2023-07-09T19:38:29.640Z","dependency_job_id":null,"html_url":"https://github.com/mukeshsolanki/otpview-swiftui","commit_stats":null,"previous_names":["mukeshsolanki/otpview-swiftui"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshsolanki%2Fotpview-swiftui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshsolanki%2Fotpview-swiftui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshsolanki%2Fotpview-swiftui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshsolanki%2Fotpview-swiftui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mukeshsolanki","download_url":"https://codeload.github.com/mukeshsolanki/otpview-swiftui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223801073,"owners_count":17205008,"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":["authentication","custom","otp","otpview","pinview","swiftui","view"],"created_at":"2024-11-09T07:47:42.078Z","updated_at":"2024-11-09T07:47:42.571Z","avatar_url":"https://github.com/mukeshsolanki.png","language":"Swift","funding_links":["https://www.paypal.me/mukeshsolanki"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSwiftUI OtpView/PinView\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Swift Package Manager\" src=\"https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square\"\u003e\n  \u003ca href=\"https://img.shields.io/twitter/follow/_mukeshsolanki_\"\u003e\u003cimg alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/follow/_mukeshsolanki_\"\u003e\u003c/a\u003e\n  \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/mukeshsolanki/otpview-swiftui?label=version\"\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\"/\u003e\u003c/a\u003e\n  \u003cbr /\u003e\u003cbr /\u003e\n    A custom view to enter a code usually in cases of authentication.\n\u003c/p\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/mukeshsolanki/otpview-swiftui/main/example.gif\"/\u003e \u0026nbsp;\u0026nbsp;\n\n# Supporting SwiftUI OtpView/PinView\n\nSwiftUI OtpView/PinView is an independent project with ongoing development and support made possible thanks to your donations.\n- [Become a backer](https://www.paypal.me/mukeshsolanki)\n\n## How to integrate into your app?\nIntegrating the project is simple. All you need to do is follow the below steps\n\n###Swift Package Manager\n\nThe Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.\n\nOnce you have your Swift package set up, adding OtpView as a dependency is as easy as adding it to the dependencies value of your Package.swift.\n\n```\ndependencies: [\n    .package(url: \"https://github.com/mukeshsolanki/otpview-swiftui.git\", .upToNextMajor(from: \"1.0.0\"))\n]\n```\n\n## How to use the library?\nOkay seems like you integrated the library in your project but **how do you use it**? Well its really easy.\nJust use the `OtpView` where you need to display the view like.\n```swift\nOtpView(activeIndicatorColor: Color.black, inactiveIndicatorColor: Color.gray,  length: 4, doSomething: { value in\n                // Do something with the value input\n})\n.padding()\n```\nThat's pretty much it and your all wrapped up.\n\n## Author\nMaintained by [Mukesh Solanki](https://www.github.com/mukeshsolanki)\n\n## Contribution\n[![GitHub contributors](https://img.shields.io/github/contributors/mukeshsolanki/otpview-swiftui.svg)](https://github.com/mukeshsolanki/otpview-swiftui/graphs/contributors)\n\n* Bug reports and pull requests are welcome.\n\n## License\n```\nMIT License\n\nCopyright (c) 2018 Mukesh Solanki\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshsolanki%2Fotpview-swiftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmukeshsolanki%2Fotpview-swiftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshsolanki%2Fotpview-swiftui/lists"}