{"id":19593158,"url":"https://github.com/thoughtbot/bean","last_synced_at":"2025-04-27T14:34:19.037Z","repository":{"id":66022022,"uuid":"238984151","full_name":"thoughtbot/Bean","owner":"thoughtbot","description":"Simplify documents","archived":true,"fork":false,"pushed_at":"2021-09-24T16:16:09.000Z","size":1892,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T15:49:18.879Z","etag":null,"topics":["documents","ios","swift","swiftpackage"],"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/thoughtbot.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},"funding":{"github":"thoughtbot"}},"created_at":"2020-02-07T17:20:06.000Z","updated_at":"2024-09-23T16:45:56.000Z","dependencies_parsed_at":"2023-03-10T23:29:40.813Z","dependency_job_id":null,"html_url":"https://github.com/thoughtbot/Bean","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2FBean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2FBean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2FBean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2FBean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoughtbot","download_url":"https://codeload.github.com/thoughtbot/Bean/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251155036,"owners_count":21544588,"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":["documents","ios","swift","swiftpackage"],"created_at":"2024-11-11T08:38:23.507Z","updated_at":"2025-04-27T14:34:19.029Z","avatar_url":"https://github.com/thoughtbot.png","language":"Swift","funding_links":["https://github.com/sponsors/thoughtbot"],"categories":[],"sub_categories":[],"readme":"# Bean [![CircleCI](https://circleci.com/gh/thoughtbot/Bean.svg?style=svg)](https://circleci.com/gh/thoughtbot/Bean) [![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://swift.org/package-manager/) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg?style=flat-square)](https://github.com/Carthage/Carthage)\n\nA library that simplifies the way you deal with documents\n\n## Requirements\n- iOS 13.0 or later\n- Swift 4.0 or later\n\n## Supported Files\n- Image\n- Video\n- Audio\n- Text\n\n## Installation\n\n### [SwiftPM]\n\n[SwiftPM]: https://github.com/apple/swift-package-manager\n\nIn Xcode: File \u003e Swift Packages \u003e Add Package Dependency\nPaste: https://github.com/thoughtbot/Bean.git\n\n## Usage\n\nA Bean is a subclass of UIDocument that is returned after documents are selected\n\n### Conforming to DocumentPickable\n```swift\nclass ViewController: UIViewController, DocumentPickable {\n```\n\n### Present document picker\n```swift\nself.pickDocuments()\n```\n\n### Respond to protocal method\n```swift\nfunc didPickDocument(document: Bean?) {\n    // handle the bean\n}\n```\n\n### Preview a bean\n```swift\nself.presentPreview(document: Bean)\n```\n## License\n\nBean is Copyright © 2020 Abe Mangona and thoughtbot. It is free\nsoftware, and may be redistributed under the terms specified in the\n[LICENSE](/LICENSE) file.\n\n### About thoughtbot\n\n![thoughtbot](https://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg)\n\nBean is maintained and funded by thoughtbot, inc.\nThe names and logos for thoughtbot are trademarks of thoughtbot, inc.\n\nWe love open source software!\nSee [our other projects][community] or\n[hire us][hire] to design, develop, and grow your product.\n\n[community]: https://thoughtbot.com/community?utm_source=github\n[hire]: https://thoughtbot.com/hire-us?utm_source=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fbean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtbot%2Fbean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fbean/lists"}