{"id":25195960,"url":"https://github.com/simplisticated/baggage","last_synced_at":"2025-05-08T17:04:27.598Z","repository":{"id":56903522,"uuid":"50308168","full_name":"simplisticated/Baggage","owner":"simplisticated","description":"Simplifying work with clipboard in iOS.","archived":false,"fork":false,"pushed_at":"2017-10-29T20:57:48.000Z","size":264,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T17:03:32.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/simplisticated.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":"2016-01-24T21:04:38.000Z","updated_at":"2021-12-23T11:00:51.000Z","dependencies_parsed_at":"2022-08-21T01:50:47.523Z","dependency_job_id":null,"html_url":"https://github.com/simplisticated/Baggage","commit_stats":null,"previous_names":["igormatyushkin014/baggage","russo-programmisto/baggage"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FBaggage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FBaggage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FBaggage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FBaggage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplisticated","download_url":"https://codeload.github.com/simplisticated/Baggage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253112073,"owners_count":21856070,"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":"2025-02-10T01:39:12.950Z","updated_at":"2025-05-08T17:04:27.558Z","avatar_url":"https://github.com/simplisticated.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n\u003cimg src=\"https://github.com/igormatyushkin014/Baggage/blob/master/Logo/logo-1024-300.png\" alt=\"Baggage\" title=\"Baggage\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://swift.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/Baggage.svg?maxAge=2592000\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/dt/Baggage.svg?maxAge=2592000\"\u003e\u003c/a\u003e\n\u003ca href=\"https://tldrlegal.com/license/mit-license\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Baggage\n\nThe main purpose of `Baggage` is to simplify work with clipboard. The library is absolutely compatible with standard `UIPasteboard` class.\n\n## How To Get Started\n\n- Copy content of `Baggage` folder to your project.\n\nor\n\n- Use `Baggage` cocoapod\n\n## Requirements\n\n* iOS 9 and later\n* Xcode 9 and later\n\n## Usage\n\n### String\n\nCopy string to clipboard:\n\n```swift\nlet str = \"Some text\"\nstr.bg.copy()\n```\n\nGet string from clipboard:\n\n```swift\nlet str = String.bg.fromClipboard\nNSLog(str) // Some text\n```\n\n### UITextField\n\nCopy text to clipboard:\n\n```swift\nlet textField = UITextField()\ntextField.text = \"Some text\"\ntextField.bg.copy()\n```\n\nPaste text from clipboard:\n\n```swift\ntextField.bg.paste()\nNSLog(textField.text!) // Some text\n```\n\n### UITextView\n\nCopy text to clipboard:\n\n```swift\nlet textView = UITextView()\ntextView.text = \"Some text\"\ntextView.bg.copy()\n```\n\nPaste text from clipboard:\n\n```swift\ntextView.bg.paste()\nNSLog(textView.text) // Some text\n```\n\n## License\n\n`Baggage` 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%2Fsimplisticated%2Fbaggage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplisticated%2Fbaggage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Fbaggage/lists"}