[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6929":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":14,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":9,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},6929,"Toast-Swift","scalessec\u002FToast-Swift","scalessec","A Swift extension that adds toast notifications to the UIView object class.",null,"Swift",3804,584,48,3,0,1,30.3,"MIT License",false,"master",true,[],"2026-06-12 02:01:32","Toast-Swift\n=============\n\n[![CocoaPods Version](https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FToast-Swift.svg)](http:\u002F\u002Fcocoadocs.org\u002Fdocsets\u002FToast-Swift)\n[![Carthage Compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCarthage-compatible-4BC51D.svg?style=flat)](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n\nToast-Swift is a Swift extension that adds toast notifications to the `UIView` object class. It is intended to be simple, lightweight, and easy to use. Most toast notifications can be triggered with a single line of code.\n\n**Toast-Swift is a native Swift port of [Toast for iOS](https:\u002F\u002Fgithub.com\u002Fscalessec\u002FToast \"Toast for iOS\").**\n\nScreenshots\n---------\n![Toast-Swift Screenshots](toast_swift_screenshot.jpg)\n\n\nBasic Examples\n---------\n```swift\n\u002F\u002F basic usage\nself.view.makeToast(\"This is a piece of toast\")\n\n\u002F\u002F toast with a specific duration and position\nself.view.makeToast(\"This is a piece of toast\", duration: 3.0, position: .top)\n\n\u002F\u002F toast presented with multiple options and with a completion closure\nself.view.makeToast(\"This is a piece of toast\", duration: 2.0, point: CGPoint(x: 110.0, y: 110.0), title: \"Toast Title\", image: UIImage(named: \"toast.png\")) { didTap in\n    if didTap {\n        print(\"completion from tap\")\n    } else {\n        print(\"completion without tap\")\n    }\n}\n\n\u002F\u002F display toast with an activity spinner\nself.view.makeToastActivity(.center)\n\n\u002F\u002F display any view as toast\nself.view.showToast(myView)\n\n\u002F\u002F immediately hides all toast views in self.view\nself.view.hideAllToasts()\n```\n\nBut wait, there's more!\n---------\n```swift\n\u002F\u002F create a new style\nvar style = ToastStyle()\n\n\u002F\u002F this is just one of many style options\nstyle.messageColor = .blue\n\n\u002F\u002F present the toast with the new style\nself.view.makeToast(\"This is a piece of toast\", duration: 3.0, position: .bottom, style: style)\n\n\u002F\u002F or perhaps you want to use this style for all toasts going forward?\n\u002F\u002F just set the shared style and there's no need to provide the style again\nToastManager.shared.style = style\nself.view.makeToast(\"This is a piece of toast\") \u002F\u002F now uses the shared style\n\n\u002F\u002F toggle \"tap to dismiss\" functionality\nToastManager.shared.isTapToDismissEnabled = true\n\n\u002F\u002F toggle queueing behavior\nToastManager.shared.isQueueEnabled = true\n```\n\nSee the demo project for more examples.\n\n\nSetup Instructions\n------------------\n\n[CocoaPods](http:\u002F\u002Fcocoapods.org)\n------------------\n\nTo integrate Toast-Swift into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'Toast-Swift', '~> 5.1.1'\n```\n\nand in your code add `import Toast_Swift`.\n\n[Carthage](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage)\n------------------\n\nTo integrate Toast-Swift into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"scalessec\u002FToast-Swift\" ~> 5.1.1\n```\n\nRun `carthage update` to build the framework and drag the built `ToastSwiftFramework.framework` into your Xcode project.\n\nand in your code add `import ToastSwiftFramework`.\n\n[Swift Package Manager](https:\u002F\u002Fswift.org\u002Fpackage-manager\u002F)\n------------------\n\nWhen using Xcode 11 or later, you can install `Toast` by going to your Project settings > `Swift Packages` and add the repository by providing the GitHub URL. Alternatively, you can go to `File` > `Swift Packages` > `Add Package Dependencies...`\n\nManually\n------------------\n\n1. Add `Toast.swift` to your project.\n2. Grab yourself a cold 🍺.\n\nCompatibility\n------------------\n* Version `5.x.x` requires Swift 5 and Xcode 10.2 or later.\n* Version `4.x.x` requires Swift 4.2 and Xcode 10.\n* Version `3.x.x` requires Swift 4 and Xcode 9.\n* Version `2.x.x` requires Swift 3 and Xcode 8.\n* Version `1.4.x` requires Swift 2.2 and Xcode 7.3. \n* Version `1.0.0` can be used with Swift 2.1 and earlier versions of Xcode.\n\nPrivacy\n-----------\nToast-Swift does not collect any data. A [privacy manifest](Toast\u002FResources\u002FPrivacyInfo.xcprivacy) is provided with the library. See [Apple's documentation](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fbundleresources\u002Fprivacy_manifest_files) for related details.\n \nMIT License\n-----------\n    Copyright (c) 2015-2024 Charles Scalesse.\n\n    Permission is hereby granted, free of charge, to any person obtaining a\n    copy of this software and associated documentation files (the\n    \"Software\"), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and\u002For sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be included\n    in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","Toast-Swift 是一个为 UIView 类添加吐司通知的 Swift 扩展。其核心功能包括通过一行代码即可展示吐司消息，支持自定义显示时长、位置、样式以及是否可点击关闭等特性，并且可以轻松集成到项目中。此外，还提供了加载指示器和自定义视图作为吐司内容的功能。此扩展旨在保持简单、轻量级且易于使用，适用于需要在 iOS 应用程序中快速实现用户反馈提示的各种场景，如表单验证结果展示或网络请求状态通知。",2,"2026-06-11 03:09:37","top_language"]