{"id":18600308,"url":"https://github.com/alekseypleshkov/uisliderview","last_synced_at":"2025-10-26T07:17:44.988Z","repository":{"id":38080225,"uuid":"237190345","full_name":"AlekseyPleshkov/UISliderView","owner":"AlekseyPleshkov","description":"Easy and customizable Swift image slider with lazy loading images and full screen viewer","archived":false,"fork":false,"pushed_at":"2022-08-10T18:40:21.000Z","size":13270,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T15:04:58.600Z","etag":null,"topics":[],"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/AlekseyPleshkov.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":"2020-01-30T10:33:27.000Z","updated_at":"2022-03-07T10:42:17.000Z","dependencies_parsed_at":"2022-08-31T02:20:20.067Z","dependency_job_id":null,"html_url":"https://github.com/AlekseyPleshkov/UISliderView","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/AlekseyPleshkov/UISliderView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2FUISliderView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2FUISliderView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2FUISliderView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2FUISliderView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlekseyPleshkov","download_url":"https://codeload.github.com/AlekseyPleshkov/UISliderView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2FUISliderView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262614456,"owners_count":23337277,"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":"2024-11-07T02:03:38.907Z","updated_at":"2025-10-26T07:17:39.954Z","avatar_url":"https://github.com/AlekseyPleshkov.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 UISliderView\n\nEasy and customizable Swift image slider with lazy loading images and full screen viewer\n\n\u003cimg src=\"https://github.com/AlekseyPleshkov/UISliderView/blob/master/preview.gif?raw=true\" width=\"320\" height=\"571\"/\u003e\u003c/a\u003e\n\n## 🛠 Installation\n\n#### CocoaPods\n\n[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nFor integrate `UISliderView` into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '11.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\npod 'UISliderView', '~\u003e 1.0.6'\nend\n```\n\nThen, run the following terminal command in project directory:\n\n```bash\n$ pod install\n```\n\n#### Swift Package Manager\n\nFor use [The Swift Package Manager](https://swift.org/package-manager/) you need add `UISliderView` dependency to `Package.swift` file:\n\n```swift\nimport PackageDescription\n\nlet package = Package(\n  name: \"PROJECT_NAME\",\n  targets: [],\n  dependencies: [\n      .package(url: \"https://github.com/AlekseyPleshkov/UISliderView.git\", from: \"1.0.6\")\n  ]\n)\n```\n\nThen add `UISliderView` to your targets dependencies:\n\n```swift\n.target(\n  name: \"TARGET_NAME\",\n  dependencies: [\n      \"UISliderView\",\n  ]\n),\n```\n\nAnd run terminal command:\n\n```bash\nswift package update\n```\n\nOr use SPM in XCode 😊\n\n## 💻 How to use\n\n### Simple usage\n\nImport package in your file\n\n```\nimport UISliderView\n```\n\nSet `UISliderView` class to custom class for empty view or create `UISliderView` class programmably.\n\n```swift\n@IBOutlet weak var sliderView: UISliderView!\n// or\nlet sliderView = UISliderView()\n```\n\nSet list of image urls to `sliderView` and run `reloadData()` method for create/reload slides with images\n\n```swift\nsliderView.images = [\n  URL(string: \"https://source.unsplash.com/1024x1024\")!,\n  URL(string: \"https://source.unsplash.com/1024x1024\")!,\n  URL(string: \"https://source.unsplash.com/1024x1024\")!,\n  URL(string: \"https://source.unsplash.com/1024x1024\")!\n]\nsliderView.reloadData()\n```\n\nIt's done!\n\n### Available configurations\n- `delegate: UISliderViewDelegate?`. The object that acts as the delegate of the slider view. Notifies at main events.\n- `viewController: UIViewController?`. View controller for show full screen slider. Set this parameter to open slider in full screen.\n- `images: [URL]`. List of image urls for loading and showing in sliders.\n- `imageContentMode: UIView.ContentMode = .scaleAspectFill`. Image content mode for slide.\n- `activityIndicatorColor: UIColor = .black`. Activity indicator color (while the image is loading).\n- `activityIndicatorStyle: UIActivityIndicatorView.Style?`. /// Activity indicator style (while the image is loading).\n- `pageIndicatorColor: UIColor?`. Page indicator color.\n- `pageCurrentIndicatorColor: UIColor?`. Current page indicator color.\n- `fullScreenImageContentMode: UIView.ContentMode = .scaleAspectFill`. Image content mode for full screen slide.\n- `fullScreenActivityIndicatorColor: UIColor = .white`. Activity indicator color (while the image is loading) for full screen slide.\n- `fullScreenActivityIndicatorStyle: UIActivityIndicatorView.Style?`. /// Activity indicator style (while the image is loading) for full screen slide.\n- `fullScreenBackButtonImage: UIImage?`. Image for back button in full screen mode. Automatically hidden button if image not set.\n- `isShowPageControl: Bool = true`. Shows pageControl indicator.\n\n### Methods\n- `reloadData()`. Reloads slides by list of url images. Call this method after set list of urls to image parameter.\n\n### Delegate\n- `sliderView(_ sliderView: UISliderView, didChangeSlideAt index: Int)`. Tells the delegate that the slide did change.\n- `sliderView(_ sliderView: UISliderView, didChangeFullScreenVisible isVisible: Bool)`. Tells the delegate that the full screen view did change visible state.\n\n## 🚧 Requirements\n\n- Swift 5.0\n- XCode 10\n- iOS 11 or later\n\n## 🖖 About Me\n\n* Aleksey Pleshkov\n* Email: [im@alekseypleshkov.ru](mailto:im@alekseypleshkov.ru)\n* Website: [alekseypleshkov.ru](https://alekseypleshkov.ru)\n\n## ©️ License\n\n`UISliderView` is released under the MIT license. In short, it's royalty-free but you must keep the copyright notice in your code or software distribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekseypleshkov%2Fuisliderview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falekseypleshkov%2Fuisliderview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekseypleshkov%2Fuisliderview/lists"}