{"id":32325070,"url":"https://github.com/georgemihoc/toastframeworkswift","last_synced_at":"2026-03-08T16:32:49.516Z","repository":{"id":57681210,"uuid":"469657520","full_name":"georgemihoc/ToastFrameworkSwift","owner":"georgemihoc","description":"A configurable Swift framework for UI Toast components.","archived":false,"fork":false,"pushed_at":"2022-05-20T08:44:00.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T13:03:48.539Z","etag":null,"topics":["alert","cocoapods","framework","ios","swift","toast"],"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/georgemihoc.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":"2022-03-14T09:11:15.000Z","updated_at":"2022-08-05T21:00:07.000Z","dependencies_parsed_at":"2022-09-15T05:52:09.633Z","dependency_job_id":null,"html_url":"https://github.com/georgemihoc/ToastFrameworkSwift","commit_stats":null,"previous_names":["georgemihoc/toastframework"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/georgemihoc/ToastFrameworkSwift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgemihoc%2FToastFrameworkSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgemihoc%2FToastFrameworkSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgemihoc%2FToastFrameworkSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgemihoc%2FToastFrameworkSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georgemihoc","download_url":"https://codeload.github.com/georgemihoc/ToastFrameworkSwift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgemihoc%2FToastFrameworkSwift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280622603,"owners_count":26362266,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","cocoapods","framework","ios","swift","toast"],"created_at":"2025-10-23T13:13:26.311Z","updated_at":"2025-10-23T13:13:30.775Z","avatar_url":"https://github.com/georgemihoc.png","language":"Swift","readme":"# ToastFrameworkSwift\n\n[![Version](https://img.shields.io/cocoapods/v/ToastFrameworkSwift)](https://cocoapods.org/pods/ToastFrameworkSwift)\n[![Platform](https://img.shields.io/cocoapods/p/ToastFrameworkSwift)](https://cocoapods.org/pods/ToastFrameworkSwift)\n[![License](https://img.shields.io/cocoapods/l/ToastFrameworkSwift)](https://github.com/georgemihoc/ToastFrameworkSwift/blob/main/LICENSE)\n\nA configurable Swift framework for UI Toast components.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/45356920/169332591-e1eb102e-ee42-40e3-94d4-84cc0a573ca2.gif\" width=\"50%\" height=\"50%\"/\u003e\n\u003c/p\u003e\n\n## Installation\n\nToastFrameworkSwift is an open-source framework available through [CocoaPods](https://cocoapods.org).\n\nFirst step is to install CocoaPods. Skip this step if you already have CocoaPods installed on your machine.\n\n```ruby\nsudo gem install cocoapods\n```\n\nInitialize your project with CocoaPods from your project directory:\n\n```ruby\npod init\n```\n\nFor installation, add the required pod within your `Podfile` as shown below:\n\n```ruby\npod 'ToastFrameworkSwift'\n```\n\nAfter adding the pod, run the below command :\n\n```ruby\npod install\n```\n\n## ToastFrameworkSwift Example\n\nTo run the example project, clone the repo, and run `pod install` within the ToastFrameworkExample directory, using `Terminal`. \n\nHere you can see how different types of toasts look, both normal and CTA ones.\n\n## Usage\n\nAfter the installation step you should have generated the `.xcworkspace`. The next step now is to import `ToastFrameworkSwift` within your `ViewController`:\n\n```swift\nimport ToastFrameworkSwift\n```\n\n### Configuration\n\nThe toast framework can be configured with the following properties:\n\n```swift\n// Enables or disables tap to dismiss behaviour for toasts. \n// When `true`, toast views will dismiss when tapped. When `false`, tapping will have no effect.\nToastManager.shared.isTapToDismissEnabled = true\n```\n\n```swift\n// Enables or disables wipe to dismiss behaviour for toasts. \n// When `true`, toast views will dismiss when swiped. When `false`, swiping will have no effect.\nToastManager.shared.isSwipeToDismissEnabled = true\n```\n\n```swift\n// Enables or disables queueing behaviour for toasts. \n// When `true`, toast views will appear one after the other. When `false`, toast overlapping might happen\nToastManager.shared.isQueueEnabled = true\n```\n\n```swift\n// The default duration for toasts. Default value is 1.0\nToastManager.shared.duration = 2\n```\n\n```swift\n// This property sets up the haptic feedback type. The types can be found \n// within `HapticFeedback` class. When `.none`, there won't be any haptic feedback.\nToastManager.shared.hapticFeedbackType = .impactLight\n```\n\n### Basic Toast\n```swift\nfunc presentBasicToast() {\n    view.showToast(message: \"This is a Basic Toast.\")\n}\n```\n\n### Basic Toast with customizable background\n```swift\nfunc presentBasicGrayToast() {\n    view.showToast(message: \"This is a Basic Gray Toast.\", toastColor: .gray)\n}\n```\n\n### Basic Toast with customizable background and text color\n```swift\nfunc presentBasicBlackTextToast() {\n    view.showToast(message: \"This is a Black Text Toast.\", toastColor: .gray, textColor: .black)\n}\n```\n### CTA Toast that presents a follow-up Toast on action\n```swift\nfunc presentCTAToast() {\n    view.showCTAToast(message: \"This is a CTA Toast.\", actionTitle: \"Press here\") { [weak self] in\n        self?.view.showToast(message: \"This is the follow-up Toast.\", toastColor: .systemGreen)\n    }\n}\n```\n\n## Author\n\nGeorge Mihoc, george.mihoc@gmail.com\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n\n## License\n[MIT](https://github.com/georgemihoc/ToastFrameworkSwift/blob/main/LICENSE) @ 2022 George Mihoc\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgemihoc%2Ftoastframeworkswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgemihoc%2Ftoastframeworkswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgemihoc%2Ftoastframeworkswift/lists"}