{"id":19328234,"url":"https://github.com/jndisrupter/jnmultipleimages","last_synced_at":"2026-03-02T07:06:33.973Z","repository":{"id":56916334,"uuid":"103418210","full_name":"JNDisrupter/JNMultipleImages","owner":"JNDisrupter","description":"Multiple images view","archived":false,"fork":false,"pushed_at":"2024-10-10T09:06:29.000Z","size":3214,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T17:10:34.603Z","etag":null,"topics":["aspectfill","cocoapods","count-label","image","multiple-imageview","newsfeed-images","post-images","stacked-images","swift","xcode"],"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/JNDisrupter.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":"2017-09-13T15:36:28.000Z","updated_at":"2024-10-10T09:06:13.000Z","dependencies_parsed_at":"2024-08-12T18:46:35.041Z","dependency_job_id":"b59a255f-f619-4b47-b367-c473097fac49","html_url":"https://github.com/JNDisrupter/JNMultipleImages","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.4482758620689655,"last_synced_commit":"961c20fb8e32f304241949b4f02ed8fb1c89586e"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNMultipleImages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNMultipleImages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNMultipleImages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JNDisrupter%2FJNMultipleImages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JNDisrupter","download_url":"https://codeload.github.com/JNDisrupter/JNMultipleImages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250328153,"owners_count":21412572,"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":["aspectfill","cocoapods","count-label","image","multiple-imageview","newsfeed-images","post-images","stacked-images","swift","xcode"],"created_at":"2024-11-10T02:21:03.803Z","updated_at":"2026-03-02T07:06:33.959Z","avatar_url":"https://github.com/JNDisrupter.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JNMultipleImages\n\n[![Build Status](https://travis-ci.org/JNDisrupter/JNMultipleImages.svg?branch=master)](https://travis-ci.org/JNDisrupter/JNMultipleImages)\n[![Version](https://img.shields.io/cocoapods/v/JNMultipleImages.svg?style=flat)](http://cocoapods.org/pods/JNMultipleImages)\n[![License](https://img.shields.io/cocoapods/l/JNMultipleImages.svg?style=flat)](http://cocoapods.org/pods/JNMultipleImages)\n[![Platform](https://img.shields.io/cocoapods/p/JNMultipleImages.svg?style=flat)](http://cocoapods.org/pods/JNMultipleImages)\n\n**JNMultipleImages** can be used to display multiple images in single view, it can be used in a newsfeed or posts. A single post can contain up to 4 displayed images, while showing a number with the remaining images if they are more than 4.\n\n## Preview\n\u003cimg src=\"https://github.com/JNDisrupter/JNMultipleImages/raw/master/Images/JNMultipleImages1.gif\" width=\"280\"/\u003e  \u003cimg src=\"https://github.com/JNDisrupter/JNMultipleImages/raw/master/Images/JNMultipleImages2.gif\" width=\"280\"/\u003e\n\u003cimg src=\"https://github.com/JNDisrupter/JNMultipleImages/raw/master/Images/JNMultipleImages3.gif\" width=\"280\"/\u003e\n\u003cimg src=\"https://github.com/JNDisrupter/JNMultipleImages/raw/master/Images/JNMultipleImages4.gif\" width=\"280\"/\u003e\n\u003cimg src=\"https://github.com/JNDisrupter/JNMultipleImages/raw/master/Images/JNMultipleImages5.gif\" width=\"280\"/\u003e\n\n## Requirements\n\n- iOS 12.0+ / macOS 15.7+\n- Xcode 26+\n- Swift 5.10+\n\n## Installation with Swift Package Manager\n\nJNMultipleImages support SwiftPM. To use SwiftPM, you should use Xcode 26 to open your project. Click `File` -\u003e `Swift Packages` -\u003e `Add Package Dependency`, enter [JNMultipleImages repo's URL](https://github.com/JNDisrupter/JNMultipleImages.git)\n\n## Usage\n\n#### To add JNMultipleImages in interface builder:\n\n1. Put some UIView and change the class to \"JNMultipleImages\"\n\n2. Add refrence for it in the view controller.\n\n3. Change Attributes:\n\n* You can change count label attributes by accessing it directly from the JNMultipleImages reference.\n* delegate : this delegate confirm to JNMultipleImagesViewDelegate.\n\n4. Call setup method:\n\nSetup with JNImage array\n```swift\nsetup(images: [JNImage], countLabelPosition: JNMultipleImagesCountLabelPosition = JNMultipleImagesCountLabelPosition.lastItem, placeHolderImage: UIImage? = nil, itemsMargin : CGFloat = 2.0, style: JNMultipleImagesView.style = .collection, cornerRadius: CGFloat = 0)\n```\n\nSetup with array of any which might be Url String or UIImage\n```swift\nfunc setup(images: [Any], countLabelPosition: JNMultipleImagesCountLabelPosition = JNMultipleImagesCountLabelPosition.lastItem, placeHolderImage: UIImage? = nil, itemsMargin: CGFloat = 2.0, style: JNMultipleImagesView.style = .collection, cornerRadius: CGFloat = 0)\n```\n##### parameters\n* images : The images array to load.\n* countLabelPosition : The position for the count label (Fill view or fill last item).\n* placeHolderImage : The placeholder image to use for failed images.\n* itemsMargin : The margin between items.\n* style : The style of the view, it can be collection or a stack(horizental).\n* cornerRadius : corner radius for images.\n\n\u003e The library will adjust the UIImageViews content mode automatically like the follows :\n\u003e * If the image dimensions is smaller than the image view dimensions then the content mode is aspectFill\n\u003e * If image width and height ratio less than the image view width and height ration then the content mode is aspectFill\n\u003e * If the image is landscape and the image height is less than the image view height then the content mode is topRight\n\u003e * Other than this it is aspectFit.\n\n## Authors\n\nJayel Zaghmoutt \u0026 Mohammad Nabulsi\n\n## License\n\nJNMultipleImages is available under the MIT license. See the [LICENSE](https://github.com/JNDisrupter/JNMultipleImages/blob/master/LICENSE) file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjndisrupter%2Fjnmultipleimages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjndisrupter%2Fjnmultipleimages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjndisrupter%2Fjnmultipleimages/lists"}