{"id":18839741,"url":"https://github.com/maximbilan/ios-document-iteraction","last_synced_at":"2025-04-14T07:03:31.608Z","repository":{"id":76125879,"uuid":"54833317","full_name":"maximbilan/iOS-Document-Iteraction","owner":"maximbilan","description":"iOS: How to copy epub files from your app to iBooks app","archived":false,"fork":false,"pushed_at":"2018-09-22T09:47:37.000Z","size":399,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:44:26.582Z","etag":null,"topics":["apple","epub-files","ibooks","ios","ios-app","swift","tutorial"],"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/maximbilan.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}},"created_at":"2016-03-27T14:53:52.000Z","updated_at":"2025-02-17T00:12:35.000Z","dependencies_parsed_at":"2023-02-25T05:30:39.236Z","dependency_job_id":null,"html_url":"https://github.com/maximbilan/iOS-Document-Iteraction","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Document-Iteraction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Document-Iteraction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Document-Iteraction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Document-Iteraction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximbilan","download_url":"https://codeload.github.com/maximbilan/iOS-Document-Iteraction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837285,"owners_count":21169374,"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":["apple","epub-files","ibooks","ios","ios-app","swift","tutorial"],"created_at":"2024-11-08T02:43:56.413Z","updated_at":"2025-04-14T07:03:31.592Z","avatar_url":"https://github.com/maximbilan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS: How to copy epub files from your app to iBooks app\n\n![alt tag](https://raw.github.com/maximbilan/iOS-Document-Iteraction/master/img/img1.png)\n\n\u003ci\u003eApple\u003c/i\u003e provides this possibility via class \u003ci\u003e\u003ca href=\"https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDocumentInteractionController_class/index.html\"\u003eUIDocumentInteractionController\u003c/a\u003e\u003c/i\u003e. It’s really simple to do. I’ll just keep here.\n\nExample:\n\n\u003cpre\u003e\nvar controller = UIDocumentInteractionController()\n\nlet epubURL = NSBundle.mainBundle().URLForResource(\"test\", withExtension: \"epub\")\ncontroller.URL = epubURL\nif !controller.presentOpenInMenuFromRect(button.bounds, inView: view, animated: true) {\n  print(\"You don't have an app installed that can handle ePub files.\")\n}\n\u003c/pre\u003e\n\n![alt tag](https://raw.github.com/maximbilan/iOS-Document-Iteraction/master/img/img2.png)\n\nA class \u003ci\u003e\u003ca href=\"https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDocumentInteractionController_class/index.html\"\u003eUIDocumentInteractionController\u003c/a\u003e\u003c/i\u003e has other features, you can read more details in \u003ci\u003eApple\u003c/i\u003e documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fios-document-iteraction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximbilan%2Fios-document-iteraction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fios-document-iteraction/lists"}