{"id":16584046,"url":"https://github.com/sameersyd/motiontoastview","last_synced_at":"2025-03-16T21:30:25.184Z","repository":{"id":50608170,"uuid":"286742531","full_name":"sameersyd/MotionToastView","owner":"sameersyd","description":"A Beautiful Multipurpose Motion Toast Library in iOS using Swift","archived":false,"fork":false,"pushed_at":"2020-08-29T11:13:12.000Z","size":135,"stargazers_count":99,"open_issues_count":2,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:24:35.020Z","etag":null,"topics":["alert","beautiful-toast-library","cocoapods","ios","ios-swift","library","motion-toast","sameersyd","swift","toast-style","ui-design","xcode"],"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/sameersyd.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":"2020-08-11T12:45:51.000Z","updated_at":"2024-11-19T06:59:53.000Z","dependencies_parsed_at":"2022-08-30T11:00:17.715Z","dependency_job_id":null,"html_url":"https://github.com/sameersyd/MotionToastView","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersyd%2FMotionToastView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersyd%2FMotionToastView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersyd%2FMotionToastView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersyd%2FMotionToastView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameersyd","download_url":"https://codeload.github.com/sameersyd/MotionToastView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830922,"owners_count":20354850,"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":["alert","beautiful-toast-library","cocoapods","ios","ios-swift","library","motion-toast","sameersyd","swift","toast-style","ui-design","xcode"],"created_at":"2024-10-11T22:43:47.726Z","updated_at":"2025-03-16T21:30:24.839Z","avatar_url":"https://github.com/sameersyd.png","language":"Swift","funding_links":["https://www.buymeacoffee.com/sameersyd"],"categories":[],"sub_categories":[],"readme":"# MotionToastView - A Beautiful Toast Library for iOS Swift\n\n[![CI Status](https://img.shields.io/travis/sameersyd/MotionToastView.svg?style=flat)](https://travis-ci.org/sameersyd/MotionToastView)\n[![Version](https://img.shields.io/cocoapods/v/MotionToastView.svg?style=flat)](https://cocoapods.org/pods/MotionToastView)\n[![License](https://img.shields.io/cocoapods/l/MotionToastView.svg?style=flat)](https://cocoapods.org/pods/MotionToastView)\n[![Platform](https://img.shields.io/cocoapods/p/MotionToastView.svg?style=flat)](https://cocoapods.org/pods/MotionToastView)\n\n\nA Beautiful Multipurpose Motion Toast Library in iOS using Swift 😍\n\n![GitHub Cards Preview](https://github.com/sameersyd/templates/blob/master/_github_card_.png)\n\n## Preview - Vibrant Toast 🌈\n![gif](https://github.com/sameersyd/templates/blob/master/vibnt.gif)\n\n## Preview - Pale Toast 🌟 \n![gif](https://github.com/sameersyd/templates/blob/master/pale_light_.png)\n\n## Preview - Dark Vibrant Toast 🌈\n![gif](https://github.com/sameersyd/templates/blob/master/vibrant_dark.png)\n\n## Preview - Dark Pale Toast 🌈\n![gif](https://github.com/sameersyd/templates/blob/master/pale_dark_.png)\n\n\n# Types of Toast Style ❤️\n\n\n\u003ctable style=\"width:100%\"\u003e\n  \u003ctr\u003e\n    \u003cth\u003e1. Pale Toast \u003c/th\u003e\n    \u003cth\u003e2. Vibrant Toast\u003c/th\u003e \n    \u003cth\u003e3. Dark Pale Toast \u003c/th\u003e\n    \u003cth\u003e4. Dark Vibrant Toast\u003c/th\u003e \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src = \"https://github.com/sameersyd/templates/blob/master/pale_light_.png\"/\u003e\u003c/td\u003e \n    \u003ctd\u003e\u003cimg src = \"https://github.com/sameersyd/templates/blob/master/vibrant_light.png\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src = \"https://github.com/sameersyd/templates/blob/master/pale_dark_.png\"/\u003e\u003c/td\u003e \n    \u003ctd\u003e\u003cimg src = \"https://github.com/sameersyd/templates/blob/master/vibrant_dark.png\"/\u003e\u003c/td\u003e \n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## About\n\nA Beautiful Multipurpose Motion Toast View in iOS using Swift with full customisation options. The library is developed using Swift 5.\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nMotionToastView is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'MotionToastView'\n```\n\nImport MotionToastView in your class\n```ruby\nimport MotionToastView\n```\n\n## 4️⃣ Toast types\n```\n        1 .success\n        2 .error\n        3 .warning\n        4 .info\n```\n\n## ✌🏻 Toast styles\n```\n        1 .style_vibrant\n        2 .style_pale\n```\n\n## ⌛️ Toast duration\n```\n        1 .short \t// 2 Seconds\n        2 .long \t// 4 Seconds\n```\n\n# Usage \n\n## Sample Code for - Motion Toast View 🌟 \n\n### Success Toast\n(Basic)\n```\nMotionToast(message: \"You have successfully completed the trip\", toastType: .success)             \n```\n\n### Error Toast\n(with corner radius)\n```\nMotionToast(message: \"You have failed to complete the trip\", toastType: .error, toastCornerRadius: 12)\n```\n\n### Warning Toast\n(with duration, style, gravity, pulseEffect)\n```\nMotionToast(message: \"You are not in the location. Try again\", toastType: .warning, duration: .long, \n              toastStyle: .style_pale, toastGravity: .centre, pulseEffect: false)     \n```\n\n### Info Toast\n(with duration, style, gravity)\n```\nMotionToast(message: \"You have failed to complete the trip\", toastType: .info, \n              duration: .long, toastStyle: .style_pale, toastGravity: .top)\n```\n\n## Note:\n#### Light and Dark mode are set using system preference\n#### toastCornerRadius parameter is only for toast style - vibrant\n\n## Motion Toast View\n\u003ctable style=\"width:100%\"\u003e\n  \u003ctr\u003e\n    \u003cth\u003eParameter\u003c/th\u003e\n    \u003cth\u003eOptional\u003c/th\u003e \n    \u003cth\u003eDefault Value\u003c/th\u003e\n    \u003cth\u003eType\u003c/th\u003e\n    \u003cth\u003eValues Available\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003emessage\u003c/td\u003e\n    \u003ctd\u003efalse\u003c/td\u003e\n    \u003ctd\u003enil\u003c/td\u003e\n    \u003ctd\u003eString\u003c/td\u003e\n    \u003ctd\u003ecustom\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003etoastType\u003c/td\u003e\n    \u003ctd\u003efalse\u003c/td\u003e\n    \u003ctd\u003enil\u003c/td\u003e\n    \u003ctd\u003eenum\u003c/td\u003e\n    \u003ctd\u003e[.success, .error, .warning, .info]\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eduration\u003c/td\u003e\n    \u003ctd\u003etrue\u003c/td\u003e\n    \u003ctd\u003e.short\u003c/td\u003e\n    \u003ctd\u003eenum\u003c/td\u003e\n    \u003ctd\u003e[.short, .long]\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003etoastStyle\u003c/td\u003e\n    \u003ctd\u003etrue\u003c/td\u003e\n    \u003ctd\u003e.style_vibrant\u003c/td\u003e\n    \u003ctd\u003eenum\u003c/td\u003e\n    \u003ctd\u003e[.style_vibrant, .style_pale]\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003etoastGravity\u003c/td\u003e\n    \u003ctd\u003etrue\u003c/td\u003e\n    \u003ctd\u003e.bottom\u003c/td\u003e\n    \u003ctd\u003eenum\u003c/td\u003e\n    \u003ctd\u003e[.top, .centre, .bottom]\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003etoastCornerRadius\u003c/td\u003e\n    \u003ctd\u003etrue\u003c/td\u003e\n    \u003ctd\u003e0\u003c/td\u003e\n    \u003ctd\u003eInt\u003c/td\u003e\n    \u003ctd\u003ecustom\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003epulseEffect\u003c/td\u003e\n    \u003ctd\u003etrue\u003c/td\u003e\n    \u003ctd\u003etrue\u003c/td\u003e\n    \u003ctd\u003eBool\u003c/td\u003e\n    \u003ctd\u003e[true, false]\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## ✍🏻 Want More Customisation?\n```\nMotionToast_Customisation(header: \"Custom Toast\", message: \"It gives you more customisation options.\",\n                            headerColor: UIColor(red: 255.0, green: 255.0, blue: 255.0, alpha: 1.0), \n                            messageColor: UIColor(red: 239.0, green: 239.0, blue: 239.0, alpha: 0.7), \n                            primary_color: UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.5), \n                            secondary_color: UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0), \n                            icon_image: UIImage(named: \"apple\")!, duration: .long, toastStyle: .style_pale, \n                            toastGravity: .bottom, toastCornerRadius: 12, pulseEffect: true)\n```\n\n## Checkout Android version of this library \u003ca href=\"https://github.com/Spikeysanju/MotionToast\"\u003eMotion Toast\u003c/a\u003e\n#### Design Inspired from \u003ca href=\"https://github.com/Spikeysanju\"\u003e@Spikeysanju\u003c/a\u003e\n\n## Donation\nIf this project helped you reduce time to develop, you can buy me a cup of coffee :) \n\n\u003ca href=\"https://www.buymeacoffee.com/sameersyd\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n\n## Author\n\nSameer Nawaz, sameer.nwaz@gmail.com\n\n## License\n\nMotionToastView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersyd%2Fmotiontoastview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameersyd%2Fmotiontoastview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersyd%2Fmotiontoastview/lists"}