{"id":14979645,"url":"https://github.com/superbderrick/summerslider","last_synced_at":"2025-07-29T10:09:15.913Z","repository":{"id":24527962,"uuid":"101837875","full_name":"superbderrick/SummerSlider","owner":"superbderrick","description":":lollipop: SummerSlider that can distinguish the parts where the advertisement of the video player comes out","archived":false,"fork":false,"pushed_at":"2020-09-29T07:21:40.000Z","size":10755,"stargazers_count":66,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T00:47:16.267Z","etag":null,"topics":["avplayer","avplayerview","ios-ui","ios-uiview","ios-video-player","slider","uislider","vast","youtube-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/superbderrick.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":"2017-08-30T04:31:53.000Z","updated_at":"2025-05-04T09:25:59.000Z","dependencies_parsed_at":"2022-08-08T06:00:13.078Z","dependency_job_id":null,"html_url":"https://github.com/superbderrick/SummerSlider","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/superbderrick/SummerSlider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbderrick%2FSummerSlider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbderrick%2FSummerSlider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbderrick%2FSummerSlider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbderrick%2FSummerSlider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superbderrick","download_url":"https://codeload.github.com/superbderrick/SummerSlider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbderrick%2FSummerSlider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668699,"owners_count":24124966,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["avplayer","avplayerview","ios-ui","ios-uiview","ios-video-player","slider","uislider","vast","youtube-video"],"created_at":"2024-09-24T14:00:26.296Z","updated_at":"2025-07-29T10:09:15.885Z","avatar_url":"https://github.com/superbderrick.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SummerSlider\n![Swift](https://img.shields.io/badge/Swift-3.0-orange.svg)\n![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg)\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n\n[![CI Status](http://img.shields.io/travis/superbderrick/SummerSlider.svg?style=flat)](https://travis-ci.org/superbderrick/SummerSlider)\n[![Version](https://img.shields.io/cocoapods/v/SummerSlider.svg?style=flat)](http://cocoapods.org/pods/SummerSlider)\n[![License](https://img.shields.io/cocoapods/l/SummerSlider.svg?style=flat)](http://cocoapods.org/pods/SummerSlider)\n[![Platform](https://img.shields.io/cocoapods/p/SummerSlider.svg?style=flat)](http://cocoapods.org/pods/SummerSlider)\n[![HitCount](http://hits.dwyl.com/superbderrick/https://githubcom/superbderrick/SummerSlider.svg)](http://hits.dwyl.com/superbderrick/https://githubcom/superbderrick/SummerSlider)\n\n![](https://github.com/superbderrick/SummerSlider/blob/master/Image/logo.jpeg)\n\n## SummerSlider\n\n\nSummerSlider is an iOS Custom Slider library\nIt's available with variety usecases like (typically custome ui slider and video-related apps)\nBesides the repository introduces various usecase samples with SummerSlider\n\n## UseCases\n- Youtube Player UI scenario  \nIt s\ns some parts for advertisement separator sections during entire video duration\n\n- IMA SDK (VAST) with AVPLAYER\n\nIf you used Google IMA SDK with AVPLAYER , the summer slider is a very useful and suitable\nvast sample code was intergrated and explained how to use for some vase usecases such as midrole and prerole cases\n\n## Demo\n#### Basic\n![demo1](https://github.com/superbderrick/SummerSlider/blob/master/Image/demo1.gif)\n#### Usecase(IMA SDK)\n![demo2](https://github.com/superbderrick/SummerSlider/blob/master/Image/demo2.gif)\n\n\n## Requirements\n-\tSwift 3,4.0,5.0\n-\tiOS 8.0+\n-\tXcode 8\n\n## How to install\nSummerSlider is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\nSwift 3.0\n```ruby\npod 'SummerSlider', '~\u003e0.2.0'\n```\n\nSwift 4.0\n```ruby\npod 'SummerSlider', '~\u003e0.3.0'\n```\n\nSwift 5.0\n```ruby\npod 'SummerSlider', '~\u003e0.4.0'\n```\n\n\n#### Classic and ancient way\nCopy into your project the following files:\n`SummerSlider.swift` , `Constants.swift`,\n`HorizontalSlider.swift`,`Slider.swift`,`SliderDrawingProtocol.swift`,`SliderFactory.swift`,\n`SummerSliderTypes.swift`,`VerticalSlider.swift`,\n\n\nHow to use it? \n------------\n#### First way (User Interface):\n\nAdd an UISlider outlet to your view using the User Interface and set `SummerSlider` as the custom class. Mostly the exposed properties are marked with **@IBInspectable**, so you can customize them in storyboard's attributes inspector and preview it directly. \n\n\nLink it with the outlet property if you want to access its properties:\n\n@IBOutlet weak var sampleSlider: SummerSlider!\n\nSimply customize it! (take a look at -Customization- section)\n```\nvar sampleArray = Array\u003cFloat\u003e()\nsampleArray = [0,12,23,34,45,56,77,99]\nsampleSlider.selectedBarColor = UIColor.white\nsampleSlider.unselectedBarColor = UIColor.black\nsampleSlider.markColor = UIColor.orange\nsampleSlider.markWidth = 2.0\nsampleSlider.markPositions = sampleArray\n```\n\n\nSecond way (Using code) -  **Preferred** \n\n\nIt is really easy to set it! Firstly, import SummerSlider.\n\n\timport SummerSlider\n\n\nInstantiate and customize it (again, take a look at -Customization- section). Finally add it to the desired view as usual:\n```\n\nlet testRect1 = CGRect(x:30 ,y:70 , width:300 ,height:30)\nvar marksArray1 = Array\u003cFloat\u003e()\nmarksArray1 = [0,10,20,30,40,50,60,70,80,90,100]\nsecondSlider = SummerSlider(frame: testRect1)\nsecondSlider.selectedBarColor = UIColor.blue\nsecondSlider.unselectedBarColor = UIColor.red\nsecondSlider.markColor = UIColor.yellow\nsecondSlider.markWidth = 2.0\nsecondSlider.markPositions = marksArray1\nself.view.addSubview(secondSlider)\n```\n\n\nSetting the marks\n------------\nYou can set the marks using a percentage system from 0 to 100 (Percent). Set all the marks in the `markPositions array` property:\n```\nsummerSlider.markPositions = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]\n```\n\nCustomization\n------------\nHere you can see a bunch of parameters that you can change:\n\n#### Marks\n- `markColor` : UIColor  - Customize the color of the marks.\n- `markWidth`: Float - Customize the width of the marks.\n- `markPositions`: [Float] - Set in a percentage system from 0 to 100 where the marks should be placed.\n\n#### Bar colors\n- `selectedBarColor`: UIColor - Customize the color of the selected side of the slider.\n- `unselectedBarColor`: UIColor - Customize the color of the unselected side of the slider.\n\n## Author\n\nSuperbDerrick, kang.derrick@gmail.com\n\n## References\n Please Let me know pull request or  if you want to use this library in your application.\n\n## License\n\nSummerSlider is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbderrick%2Fsummerslider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbderrick%2Fsummerslider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbderrick%2Fsummerslider/lists"}