{"id":13786414,"url":"https://github.com/Nrjwolf/unity-ios-easy-native-alert","last_synced_at":"2025-05-11T22:31:09.835Z","repository":{"id":56718054,"uuid":"225936079","full_name":"Nrjwolf/unity-ios-easy-native-alert","owner":"Nrjwolf","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-22T12:45:18.000Z","size":324,"stargazers_count":39,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-03T19:09:54.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/Nrjwolf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-04T18:54:54.000Z","updated_at":"2024-08-03T19:09:54.375Z","dependencies_parsed_at":"2022-08-16T00:10:32.145Z","dependency_job_id":null,"html_url":"https://github.com/Nrjwolf/unity-ios-easy-native-alert","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/Nrjwolf%2Funity-ios-easy-native-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nrjwolf%2Funity-ios-easy-native-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nrjwolf%2Funity-ios-easy-native-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nrjwolf%2Funity-ios-easy-native-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nrjwolf","download_url":"https://codeload.github.com/Nrjwolf/unity-ios-easy-native-alert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225101292,"owners_count":17421074,"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-03T19:01:15.347Z","updated_at":"2024-11-17T22:32:09.822Z","avatar_url":"https://github.com/Nrjwolf.png","language":"C#","funding_links":[],"categories":["iOS"],"sub_categories":[],"readme":"# IOS Easy Alert\n\n### Install\n\nAdd this as a package to your project by adding the below as an entry to the dependencies in the `/Packages/manifest.json` file:\n\n```json\n\"nrjwolf.games.iosnativealerts\": \"git+https://github.com/Nrjwolf/unity-ios-easy-native-alert\"\n```\nFor more information on adding git repositories as a package see the [Git support on Package Manager](https://docs.unity3d.com/Manual/upm-git.html) in the Unity Documentation.\n\n---\n\nExample\n``` c#\nusing UnityEngine;\n\nnamespace Nrjwolf.Tools\n{\n    public class IOSNativeAlertsExample : MonoBehaviour\n    {\n        private void OnGUI()\n        {\n#if UNITY_IOS\n            GUI.matrix = Matrix4x4.Scale(new Vector3(3.5f, 3.5f, 3.5f));\n            if (GUILayout.Button(\"Simple Allert\"))\n            {\n                IOSNativeAlert.ShowAlertMessage(\"Simple alert\", \"Press ok, if you're ok\");\n            }\n            if (GUILayout.Button(\"Cancel/Ok\"))\n            {\n                IOSNativeAlert.ShowAlertMessage(\n                    \"Check out my github\",\n                    \"You can find another great plugins for unity on my github account\",\n                    new IOSNativeAlert.AlertButton(\"Cancel\", null, ButtonStyle.Cancel),\n                    new IOSNativeAlert.AlertButton(\"Github\", () =\u003e Application.OpenURL(\"https://github.com/Nrjwolf\"))\n                    );\n            }\n            if (GUILayout.Button(\"Sheet\"))\n            {\n                IOSNativeAlert.ShowSheetMessage(\n                    \"Do you want to reset your phone?\",\n                    \"Just kidding, I can't do it :)\",\n                    new IOSNativeAlert.AlertButton(\"Cancel\", null, ButtonStyle.Cancel),\n                    new IOSNativeAlert.AlertButton(\"Let's do it\", () =\u003e IOSNativeAlert.ShowToast(\"Reseting...\"), ButtonStyle.Destructive)\n                    );\n            }\n#endif\n        }\n    }\n}\n```\n\n![](https://github.com/Nrjwolf/unity-ios-easy-native-alert/blob/master/.github/sceenshot_ios_alerts.png \"\") \u003c/br\u003e\n\nFor *Android* check another my plugin https://github.com/Nrjwolf/unity-android-easy-native-alerts \u003cbr\u003e\nDo not forgot to ⭐️ it.\n\n\u003eI'm on [reddit](https://www.reddit.com/r/Nrjwolf/)\n\u003eМой [телеграм канал](https://t.me/nrjwolf_games)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNrjwolf%2Funity-ios-easy-native-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNrjwolf%2Funity-ios-easy-native-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNrjwolf%2Funity-ios-easy-native-alert/lists"}