{"id":18603709,"url":"https://github.com/abdullahselek/astoast","last_synced_at":"2025-04-11T05:36:04.232Z","repository":{"id":33725789,"uuid":"37379980","full_name":"abdullahselek/ASToast","owner":"abdullahselek","description":"A Swift extension for using Android style Toast notifications.","archived":false,"fork":false,"pushed_at":"2024-05-14T10:40:58.000Z","size":838,"stargazers_count":34,"open_issues_count":0,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T13:03:21.034Z","etag":null,"topics":["carthage","cocoapods","swift-extension","toast","xcode"],"latest_commit_sha":null,"homepage":null,"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/abdullahselek.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,"publiccode":null,"codemeta":null}},"created_at":"2015-06-13T16:59:29.000Z","updated_at":"2024-05-14T09:28:15.000Z","dependencies_parsed_at":"2024-02-06T23:25:53.191Z","dependency_job_id":"8b9bc8b3-a2f2-4d44-a420-d516be77d286","html_url":"https://github.com/abdullahselek/ASToast","commit_stats":{"total_commits":154,"total_committers":6,"mean_commits":"25.666666666666668","dds":"0.11038961038961037","last_synced_commit":"76914905bf12537fb67aba1fe736cac4853164c7"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FASToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FASToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FASToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FASToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/ASToast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248349009,"owners_count":21088962,"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":["carthage","cocoapods","swift-extension","toast","xcode"],"created_at":"2024-11-07T02:15:11.252Z","updated_at":"2025-04-11T05:36:04.199Z","avatar_url":"https://github.com/abdullahselek.png","language":"Swift","readme":"[![Build Status](https://travis-ci.org/abdullahselek/ASToast.svg?branch=master)](https://travis-ci.org/abdullahselek/ASToast)\n![CocoaPods Compatible](https://img.shields.io/cocoapods/v/ASToast.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Coverage Status](https://coveralls.io/repos/github/abdullahselek/ASToast/badge.svg?branch=master)](https://coveralls.io/github/abdullahselek/ASToast?branch=master)\n![Platform](https://img.shields.io/cocoapods/p/ASToast.svg?style=flat)\n![License](https://img.shields.io/dub/l/vibe-d.svg)\n\n# ASToast\nA Swift extension for using Android style Toast notifications. You may call ASToast methods directly from your view objects.\n\n## Screenshots\n\n![single_toast](https://github.com/abdullahselek/ASToast/blob/master/images/astoast_singletoast.png)\n![image_toast](https://github.com/abdullahselek/ASToast/blob/master/images/astoast_image_title_text_toast.png)\n![activity_toast](https://github.com/abdullahselek/ASToast/blob/master/images/astoast_activity.png)\n\n## Requirements\n\n| ASToast Version | Minimum iOS Target  | Swift Version |\n|:--------------------:|:---------------------------:|:---------------------------:|\n| 1.1.2 | 9.0 | 4.1 |\n| 1.1.1 | 9.0 | 4.0 |\n| 1.1.0 | 8.0 | 3.x |\n| 1.0.3 | 8.0 | 2.x |\n\niOS 8.0+\n\n## CocoaPods\n\nCocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:\n```\t\n$ gem install cocoapods\n```\n\nTo integrate ASToast into your Xcode project using CocoaPods, specify it in your Podfile:\n```\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'ASToast', '~\u003e 1.1.2'\nend\n```\nThen, run the following command:\n```\n$ pod install\n```\n## Carthage\n\nCarthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with Homebrew using the following command:\n\n```\nbrew update\nbrew install carthage\n```\n\nTo integrate ASToast into your Xcode project using Carthage, specify it in your Cartfile:\n\n```\ngithub \"abdullahselek/ASToast\" ~\u003e 1.1.2\n```\n\nRun carthage update to build the framework and drag the built ASToast.framework into your Xcode project.\n\n## Example Usage\n\nmake a toast with single text with default background color and custom message color\n```\nself.view.makeToast(message: \"Single text toast\",\n\t\t\t\t\tbackgroundColor: nil,\n\t\t\t\t\tmessageColor: UIColor.cyan)\n```\nmake a toast with custom background color white message color\n```\nself.view.makeToast(message: \"Single text toast\",\n\t\t\t\t\tbackgroundColor: UIColor.blue,\n\t\t\t\t\tmessageColor: nil)\n```\nmake a toast with text, title, position, duration and custom colors\n```\nself.view.makeToast(message: \"Toast with custom text, title and duration\",\n\t\t\t\t\tduration: TimeInterval(3.0),\n\t\t\t\t\tposition: .center,\n\t\t\t\t\ttitle: \"Title\",\n\t\t\t\t\tbackgroundColor: UIColor.blue,\n\t\t\t\t\ttitleColor: UIColor.yellow,\n\t\t\t\t\tmessageColor: UIColor.yellow,\n\t\t\t\t\tfont: UIFont.systemFont(ofSize: 16))\n``` \t\nmake toast with an image and custom colors\n```\nself.view.makeToast(message: \"Toast with an image\",\n\t\t\t\t\tduration: TimeInterval(3.0),\n\t\t\t\t\tposition: .top,\n\t\t\t\t\timage: UIImage(named: \"apple_logo\"),\n\t\t\t\t\tbackgroundColor: UIColor.blue,\n\t\t\t\t\ttitleColor: UIColor.yellow,\n\t\t\t\t\tmessageColor: UIColor.yellow,\n\t\t\t\t\tfont: UIFont.systemFont(ofSize: 16))\n```\t\nShow a custom view as toast\n```\nlet customView: UIView! = UIView(frame: CGRect(x: 0.0, y: 0.0, width: 200.0, height: 300.0))\ncustomView.autoresizingMask = [UIViewAutoresizing.flexibleLeftMargin,\n\t\t\t\t\t\t\t   UIViewAutoresizing.flexibleRightMargin,\n\t\t\t\t\t\t\t   UIViewAutoresizing.flexibleTopMargin,\n\t\t\t\t\t\t\t   UIViewAutoresizing.flexibleBottomMargin]\ncustomView.backgroundColor = UIColor.green\n\nself.view.showToast(toastView: customView,\n\t\t\t\t\tduration: TimeInterval(3.0),\n\t\t\t\t\tposition: .bottom)\n```\n\nShow an imageView as toast, on center at point (110,110)\n```\nlet toastImageView: UIImageView! = UIImageView(image: UIImage(named: \"apple_logo\"))\nself.view.showToast(toastView: toastImageView,\n\t\t\t\t\tduration: TimeInterval(3.0),\n\t\t\t\t\tpoint: CGPoint(x: 110, y: 110))\n```\n\nShow activity indicator\n```\nself.view.makeToastActivity()\n```\n\nHide activity indicator\n```\nself.view.hideToastActivity()\n```\n\t\n## MIT License\n```\nCopyright (c) 2015 Abdullah Selek\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\n## Credits\n```\nInspired from Charles Scalesse (scalessec). Improved and all coded in new programming \nlanguage Swift.\n```\n\t\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fastoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2Fastoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fastoast/lists"}