{"id":1211,"url":"https://github.com/ytakzk/Fusuma","last_synced_at":"2025-08-06T13:32:41.116Z","repository":{"id":49841720,"uuid":"50766155","full_name":"ytakzk/Fusuma","owner":"ytakzk","description":"Instagram-like photo browser and a camera feature with a few line of code in Swift.","archived":false,"fork":false,"pushed_at":"2019-10-14T22:46:06.000Z","size":8082,"stargazers_count":2459,"open_issues_count":25,"forks_count":340,"subscribers_count":61,"default_branch":"master","last_synced_at":"2024-10-29T15:32:58.704Z","etag":null,"topics":["carthage","cocoapod","cocoapods","crop","instagram","ios","photo-browser","swift","video"],"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/ytakzk.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-31T08:58:04.000Z","updated_at":"2024-10-29T14:10:20.000Z","dependencies_parsed_at":"2022-08-26T05:40:27.379Z","dependency_job_id":null,"html_url":"https://github.com/ytakzk/Fusuma","commit_stats":null,"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FFusuma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FFusuma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FFusuma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FFusuma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytakzk","download_url":"https://codeload.github.com/ytakzk/Fusuma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222296946,"owners_count":16962826,"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":["carthage","cocoapod","cocoapods","crop","instagram","ios","photo-browser","swift","video"],"created_at":"2024-01-05T20:15:41.362Z","updated_at":"2024-12-09T14:30:59.243Z","avatar_url":"https://github.com/ytakzk.png","language":"Swift","funding_links":[],"categories":["Hardware","Libs","Swift","Hardware [🔝](#readme)"],"sub_categories":["Camera","Hardware","Other free courses"],"readme":"# NOTE: This project is no longer maintained.\n\nWe highly recommend [YPImagePicker](https://github.com/Yummypets/YPImagePicker).\n\n## Fusuma\n\nFusuma is a Swift library that provides an Instagram-like photo browser with a camera feature using only a few lines of code.  \nYou can use Fusuma instead of UIImagePickerController. It also has a feature to take a square-sized photo.\n\n[![Version](https://img.shields.io/cocoapods/v/Fusuma.svg?style=flat)](http://cocoapods.org/pods/Fusuma)\n[![Platform](https://img.shields.io/cocoapods/p/Fusuma.svg?style=flat)](http://cocoapods.org/pods/Fusuma)\n[![CI Status](http://img.shields.io/travis/ytakzk/Fusuma.svg?style=flat)](https://travis-ci.org/ytakzk/Fusuma)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![codebeat](https://codebeat.co/badges/287ff7b1-4cda-4384-8780-88e1dbff95cd)](https://codebeat.co/projects/github-com-ytakzk-fusuma)\n\n## Preview\n\u003cimg src=\"./Demo/fusuma.gif?raw=true\" width=\"340px\"\u003e\n\n## Images\n\u003cimg src=\"./Demo/camera_roll.png?raw=true\" width=\"340px\"\u003e\n\u003cimg src=\"./Demo/photo.png?raw=true\" width=\"340px\"\u003e\n\n## Features\n- [x] UIImagePickerController alternative\n- [x] Cropping images in camera roll\n- [x] Taking a square-sized photo and a video using AVFoundation\n- [x] Flash: On \u0026 Off \n- [x] Camera Mode: Front \u0026 Back \n- [x] Video Mode\n- [x] Colors fully customizable\n\nThose features are available just with a few lines of code!\n\n## Installation\n\n#### Manual installation\n\nDownload and drop the 'Classes' folder into your Xcode project.  \n\n#### Using [CocoaPods](http://cocoapods.org/)\n\nAdd `pod 'Fusuma'` to your `Podfile` and run `pod install`. Also add `use_frameworks!` to the `Podfile`.\n\n```\nuse_frameworks!\npod 'Fusuma'\n```\n\n#### Swift 3\nThe latest version does support Swift 4.2. If you're still using Swift 3, you can install Fusuma as follows:\n\n`pod 'Fusuma', git: 'git@github.com:ytakzk/Fusuma.git', branch: 'swift-3'`\n\n## Fusuma Usage\nImport Fusuma ```import Fusuma``` then use the following codes in some function except for viewDidLoad and give FusumaDelegate to the view controller.  \n\n```Swift\nlet fusuma = FusumaViewController()\nfusuma.delegate = self\nfusuma.availableModes = [FusumaMode.library, FusumaMode.camera, FusumaMode.video] // Add .video capturing mode to the default .library and .camera modes\nfusuma.cropHeightRatio = 0.6 // Height-to-width ratio. The default value is 1, which means a squared-size photo.\nfusuma.allowMultipleSelection = true // You can select multiple photos from the camera roll. The default value is false.\nself.present(fusuma, animated: true, completion: nil)\n```\n\n#### Delegate methods\n\n```Swift\n// Return the image which is selected from camera roll or is taken via the camera.\nfunc fusumaImageSelected(_ image: UIImage, source: FusumaMode) {\n\n  print(\"Image selected\")\n}\n\n// Return the image but called after is dismissed.\nfunc fusumaDismissedWithImage(image: UIImage, source: FusumaMode) {\n        \n  print(\"Called just after FusumaViewController is dismissed.\")\n}\n\nfunc fusumaVideoCompleted(withFileURL fileURL: URL) {\n\n  print(\"Called just after a video has been selected.\")\n}\n\n// When camera roll is not authorized, this method is called.\nfunc fusumaCameraRollUnauthorized() {\n\n  print(\"Camera roll unauthorized\")\n}\n\n// Return selected images when you allow to select multiple photos.\nfunc fusumaMultipleImageSelected(_ images: [UIImage], source: FusumaMode) {\n\n}\n\n// Return an image and the detailed information.\nfunc fusumaImageSelected(_ image: UIImage, source: FusumaMode, metaData: ImageMetadata) {\n\n}\n```\n\n#### How To Customize\n\n```Swift\nlet fusuma = FusumaViewController()\nfusuma.delegate = self\n// ...\nfusumaCameraRollTitle = \"CustomizeCameraRollTitle\"\nfusumaCameraTitle = \"CustomizeCameraTitle\" // Camera Title\nfusumaTintColor: UIColor // tint color\n// ...\nself.present(fusuma, animated: true, completion: nil)\n\n```\n\n### Properties\n\n| Prop | Type | Description | Default |\n|---|---|---|---|\n|**`fusumaBaseTintColor `**|UIColor|Base tint color.|`UIColor.hex(\"#c9c7c8\", alpha: 1.0)`|\n|**`fusumaTintColor `**|UIColor|Tint color.|`UIColor.hex(\"#FCFCFC\", alpha: 1.0)`|\n|**`fusumaBackgroundColor `**|UIColor|Background color.|`UIColor.hex(\"#c9c7c8\", alpha: 1.0)`|\n|**`fusumaCheckImage `**| UIImage | Image of check button.|![](./Sources/Assets.xcassets/ic_check.imageset/ic_check_white_48pt.png)|\n|**`fusumaCloseImage `**| UIImage |Image of close button.|![](./Sources/Assets.xcassets/ic_close.imageset/ic_close_white_48pt.png)|\n|**`fusumaCropImage `**| Bool |Whether to crop the taken image.| `true` |\n|**`fusumaSavesImage `**| Bool |Whether to save the taken image.| `false` |\n|**`fusumaCameraRollTitle `**| String |Text of camera roll title.| `\"Library\"` |\n|**`fusumaCameraTitle `**| String |Text of carmera title text.| `Photo` |\n|**`fusumaVideoTitle `**| String |Text of video title.| `Video` |\n|**`fusumaTitleFont `**| UIFont |Font for title text.| `UIFont(name: \"AvenirNext-DemiBold\", size: 15)` |\n\n## Fusuma for Xamarin\nCheesebaron developed Chafu for Xamarin.  \nhttps://github.com/Cheesebaron/Chafu\n\n## Author\nytakzk  \n [https://ytakzk.me](https://ytakzk.me)\n \n## Donation\nYour support is welcome through Bitcoin 3Ps8tBgz4qn6zVUr5D1wcYrrzYjMgEugqv\n \n## License\nFusuma is released under the MIT license.  \nSee LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakzk%2FFusuma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytakzk%2FFusuma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakzk%2FFusuma/lists"}