{"id":22753611,"url":"https://github.com/starryinternet/butterytoast","last_synced_at":"2025-04-14T15:30:50.167Z","repository":{"id":70566208,"uuid":"62266996","full_name":"StarryInternet/ButteryToast","owner":"StarryInternet","description":"Simple Toasting Library for iOS written in Swift.","archived":false,"fork":false,"pushed_at":"2022-12-14T01:25:57.000Z","size":91,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T04:24:08.638Z","etag":null,"topics":[],"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/StarryInternet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-06-30T00:36:07.000Z","updated_at":"2023-03-04T02:46:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"77d3ebfb-4323-4c9f-9c9d-878d5913d38f","html_url":"https://github.com/StarryInternet/ButteryToast","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarryInternet%2FButteryToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarryInternet%2FButteryToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarryInternet%2FButteryToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarryInternet%2FButteryToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarryInternet","download_url":"https://codeload.github.com/StarryInternet/ButteryToast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248906366,"owners_count":21181164,"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-12-11T06:12:09.169Z","updated_at":"2025-04-14T15:30:50.158Z","avatar_url":"https://github.com/StarryInternet.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ButteryToast\n\u003cp align=\"left\"\u003e\n\u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\" alt=\"Carthage compatible\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nSimple Toasting Library for iOS written in Swift.\nPlays nicely with Autolayout.\n\n## Requirements\n- iOS 9.0+\n- Xcode 10\n- Swift 4.2\n\n## Usage\n\n### How to create and present a toast\nToasts are presented by a `Toaster`. There is a shared instance for use in your app, as messages can be queued and may be presented in a different view controller than they were created on.\nToasts are messages that wrap any UIView. Toasts will be sized to the width of the containing view. Height is determined by autolayout UNLESS the view's bound's height exceeds that.\n\n```swift\nimport ButteryToast\n\nclass ToastyViewController: UIViewController {\n  override func viewDidAppear(_ animated: Bool) {\n    super.viewDidAppear(animated)\n    \n    let labelToToast = UILabel(frame: CGRect(x: 0, y: 0, width: 320, height: 44))\n    labelToToast.text = \"View Appeared!\"\n    labelToToast.backgroundColor = UIColor.lightGray\n    let toast = Toast(view: labelToToast)\n    Toaster.shared.add(toast)\n  }\n}\n```\n\n### Presentation Options\n Toasters have a variable `orientation` to determine the presentation style of their toasts.  This value is set to `top` by default.\n Toasts also can be initialized with an `orientation`  which overrides the `Toaster` level `orientation`.  Currently `top` and `bottom` are the options for `orientation`.\n Toast default animation is a simple (but effective) fade. Slide in is also supported by initializing toast with an `animation`. Currently `fade` and `slide` are the options for `animation`.\n\n## Installation\n\n### Carthage\n[Carthage](https://github.com/Carthage/Carthage) is a simple, decentralized dependency manager for Cocoa.\n\nAdd ButteryToast into your project's `Cartfile`:\n\n```ogdl\ngithub \"ProjectDecibel/ButteryToast\" ~\u003e 0.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarryinternet%2Fbutterytoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarryinternet%2Fbutterytoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarryinternet%2Fbutterytoast/lists"}