{"id":2416,"url":"https://github.com/wxxsw/GSMessages","last_synced_at":"2025-08-06T16:30:48.115Z","repository":{"id":46876677,"uuid":"38857167","full_name":"wxxsw/GSMessages","owner":"wxxsw","description":"A simple style messages/notifications, in Swift.","archived":false,"fork":false,"pushed_at":"2021-10-03T07:28:20.000Z","size":10752,"stargazers_count":706,"open_issues_count":1,"forks_count":65,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-11-29T03:58:28.732Z","etag":null,"topics":["ios","message","notice","notifications","swift","toast","ui"],"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/wxxsw.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":"2015-07-10T02:46:24.000Z","updated_at":"2024-10-31T09:08:53.000Z","dependencies_parsed_at":"2022-09-11T15:12:11.184Z","dependency_job_id":null,"html_url":"https://github.com/wxxsw/GSMessages","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxxsw%2FGSMessages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxxsw%2FGSMessages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxxsw%2FGSMessages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxxsw%2FGSMessages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wxxsw","download_url":"https://codeload.github.com/wxxsw/GSMessages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228841584,"owners_count":17980054,"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":["ios","message","notice","notifications","swift","toast","ui"],"created_at":"2024-01-05T20:16:13.240Z","updated_at":"2024-12-09T16:30:57.413Z","avatar_url":"https://github.com/wxxsw.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Swift","UI [🔝](#readme)"],"sub_categories":["Alert \u0026 Action Sheet","UI","Other free courses"],"readme":"![GSMessages](https://github.com/wxxsw/GSMessages/blob/master/ScreenShots/logo.png)\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://developer.apple.com/swift\"\u003e\u003cimg src=\"https://img.shields.io/badge/language-swift5-f48041.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://developer.apple.com/ios\"\u003e\u003cimg src=\"https://img.shields.io/badge/platform-iOS%208%2B-blue.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"http://cocoadocs.org/docsets/GSMessages\"\u003e\u003cimg src=\"https://img.shields.io/badge/Cocoapods-compatible-4BC51D.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wxxsw/GSMessages/blob/master/LICENSE\"\u003e\u003cimg src=\"http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/wxxsw/GSMessages/tree/1.7.4\"\u003e\u003cimg src=\"https://img.shields.io/badge/release-1.7.4-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Demo\n\n![](https://github.com/wxxsw/GSMessages/blob/master/ScreenShots/demo.gif)\n\n## Example\n\nTo show notifications use the following code:\n```Swift\nself.showMessage(\"Something success\", type: .success)\n```\n\nTo display a notice on a view:\n```Swift\nview.showMessage(\"Something success\", type: .success)\n```\n\nTo hide a notification manually:\n```Swift\nself.hideMessage()\n```\n\n#### Options (Current setting is default value):\n\n- type          : success / error / warning / info\n- animation     : slide(.normal) / slide(.distance(50)) / fade\n- position      : top / bottom\n- textAlignment : topLeft / topCenter / topRight / left / center / right / bottomLeft / bottomCenter / bottomRight\n\n```Swift\nself.showMessage(\"String or NSAttributedString\", type: .success, options: [\n    .accessibilityIdentifier(nil),\n    .animations([.slide(.normal)]),\n    .animationDuration(0.3),\n    .autoHide(true),\n    .autoHideDelay(3.0),\n    .cornerRadius(0.0),\n    .height(44.0),\n    .hideOnTap(true),\n    .handleTap({}),\n    .isInsideSafeAreaInsets(true),\n    .margin(.zero),\n    .padding(.init(top: 10, left: 30, bottom: 10, right: 30)),\n    .position(.top),\n    .textAlignment(.center),\n    .textColor(.white),\n    .textNumberOfLines(1),\n])\n```\n\n## Font / Background Color\n\nTo set custom fonts and background colors in the following ways:\n```Swift\nGSMessage.font = UIFont.boldSystemFont(ofSize: 14)\nGSMessage.successBackgroundColor = UIColor(red: 142.0/255, green: 183.0/255, blue: 64.0/255,  alpha: 0.95)\nGSMessage.warningBackgroundColor = UIColor(red: 230.0/255, green: 189.0/255, blue: 1.0/255,   alpha: 0.95)\nGSMessage.errorBackgroundColor   = UIColor(red: 219.0/255, green: 36.0/255,  blue: 27.0/255,  alpha: 0.70)\nGSMessage.infoBackgroundColor    = UIColor(red: 44.0/255,  green: 187.0/255, blue: 255.0/255, alpha: 0.90)\n```\n\n## Requirements\n\n### Master\n\n- iOS 8.0+\n- Xcode 11+ (Swift 5.x)\n\n### [1.7.1](https://github.com/wxxsw/GSMessages/tree/1.7.1)\n\n- iOS 8.0+\n- Xcode 10.0+ (Swift 4.2)\n\n### [1.5.1](https://github.com/wxxsw/GSMessages/tree/1.5.1)\n\n- iOS 8.0+\n- Xcode 9.0+ (Swift 4.0)\n\n### [1.3.5](https://github.com/wxxsw/GSMessages/tree/1.3.5)\n\n- iOS 8.0+\n- Xcode 8.0+ (Swift 3.x)\n\n### [1.2.4](https://github.com/wxxsw/GSMessages/tree/1.2.4)\n\n- iOS 7.0+\n- Xcode 7.3+ (Swift 2.x)\n\n## Installation\n\n### [CocoaPods](http://cocoapods.org/):\n\nIn your `Podfile`:\n```\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod \"GSMessages\"\n```\n\nAnd in your `*.swift`:\n```swift\nimport GSMessages\n```\n\n### [Carthage](https://github.com/Carthage/Carthage):\n\nIn your `Cartfile`:\n\n```\ngithub \"wxxsw/GSMessages\"\n```\n\nAnd in your `*.swift`:\n```swift\nimport GSMessages\n```\n\n## License\n\nGSMessages 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%2Fwxxsw%2FGSMessages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwxxsw%2FGSMessages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxxsw%2FGSMessages/lists"}