{"id":13503907,"url":"https://github.com/kronik/ScalePicker","last_synced_at":"2025-03-29T18:31:37.156Z","repository":{"id":62454956,"uuid":"53832860","full_name":"kronik/ScalePicker","owner":"kronik","description":"Generic scale and a handy float-value picker for any iOS app.","archived":false,"fork":false,"pushed_at":"2017-02-10T07:42:50.000Z","size":16297,"stargazers_count":168,"open_issues_count":3,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-02T18:02:28.789Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/kronik/ScalePicker","language":"Objective-C","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/kronik.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-03-14T06:37:45.000Z","updated_at":"2024-11-29T08:45:54.000Z","dependencies_parsed_at":"2022-11-01T23:46:31.099Z","dependency_job_id":null,"html_url":"https://github.com/kronik/ScalePicker","commit_stats":null,"previous_names":[],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kronik%2FScalePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kronik%2FScalePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kronik%2FScalePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kronik%2FScalePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kronik","download_url":"https://codeload.github.com/kronik/ScalePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246227088,"owners_count":20743884,"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-07-31T23:00:49.454Z","updated_at":"2025-03-29T18:31:32.148Z","avatar_url":"https://github.com/kronik.png","language":"Objective-C","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://travis-ci.org/kronik/ScalePicker.svg?branch=master\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/platform-iOS%208%2B-blue.svg?style=flat\" alt=\"Platform: iOS 8+\" /\u003e\n    \u003cimg src=\"https://img.shields.io/cocoapods/v/ScalePicker.svg?style=flat\" /\u003e\n    \u003ca href=\"https://developer.apple.com/swift\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-2.2-orange.svg?style=flat\" alt=\"Language: Swift 2.2\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\" alt=\"Carthage compatible\" /\u003e\u003c/a\u003e\n    \u003cimg src=\"http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat\" alt=\"License: MIT\" /\u003e\n    \u003ca href=\"https://twitter.com/dklimkin\"\u003e\u003cimg src=\"http://img.shields.io/badge/contact-@dklimkin-blue.svg?style=flat\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# ScalePicker\n\nGeneric scale and a handy float-value picker for any iOS app.\n\n## Preview\n\n\u003cimg src=\"https://raw.githubusercontent.com/kronik/ScalePicker/master/Screenshots/demo.gif\" width=\"400\"/\u003e\n\n\u003cbr\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/kronik/ScalePicker/master/Screenshots/1.png\" width=\"33%\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/kronik/ScalePicker/master/Screenshots/2.png\" width=\"33%\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/kronik/ScalePicker/master/Screenshots/3.png\" width=\"33%\"/\u003e\n\n## Installation\n\n### With source code\n\n[Download repository](https://github.com/kronik/ScalePicker/archive/master.zip), then add [ScalePicker directory](https://github.com/kronik/ScalePicker/blob/master/ScalePicker/) to your project.\n\n### With CocoaPods\n\nCocoaPods is a dependency manager for Objective-C/Swift, which automates and simplifies the process of using 3rd-party libraries in your projects. To install with cocoaPods, follow the \"Get Started\" section on [CocoaPods](https://cocoapods.org/).\n\n#### Podfile\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'ScalePicker'\n```\n\n### With Carthage\n\nCarthage is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods. To install with carthage, follow the instruction on [Carthage](https://github.com/Carthage/Carthage/).\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\nTo integrate ScalePicker into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"kronik/ScalePicker\"\n```\n\n## Usage\n\n### Initialisation\n\nInstantiate scale view with preferred frame:\n\n```swift\nlet screenWidth = UIScreen.mainScreen().bounds.size.width\nlet scaleView = ScalePicker(frame: CGRectMake(0, 0, screenWidth, 50))\n\nview.addSubview(scaleView)\n```\n\n### Properties\n\n####Set minimum value\n\n```swift\nscaleView.minValue = -3.0\n```\n\n####Set maximum value\n\n```swift\nscaleView.maxValue = 3.0\n```\n\n####Set number of ticks between values value\n\n```swift\nscaleView.numberOfTicksBetweenValues = 2\n```\n\n####Set space between ticks\n\n```swift\nscaleView.spaceBetweenTicks = 20.0\n```\n\n####Set tick label visibility\n\n```swift\nscaleView.showTickLabels = true\n```\n\n####Set a delegate\n\n```swift\nscaleView.delegate = self\n```\n\n####Set ability to snap to the nearest value\n\n```swift\nscaleView.snapEnabled = true\n```\n\n####Set bounces value\n\n```swift\nscaleView.bounces = false\n```\n\n####Set tick (and center/arrow view) color\n\n```swift\nscaleView.tickColor = UIColor.whiteColor()\n```\n\n####Set center/arrow image\n\n```swift\nscaleView.centerArrowImage = UIImage(named: \"arrowPointer\")\n```\n\n### Control actions\n#### Increase current value\n\n```swift\nscaleView.increaseValue()\n```\n#### Decrease current value\n\n```swift\nscaleView.decreaseValue()\n```\n#### Reset current value\n\n```swift\nscaleView.reset()\n```\n#### Gestures\nIn addition to increase/decrease/reset actions ScaleView allows you to double tap to trigger reset action\n\n### More\n\nFor more details try Xcode [Demo project](https://github.com/kronik/ScalePicker/blob/master/Demo)\n\n# Etc.\n\n* Contributions are very welcome.\n* Attribution is appreciated (let's spread the word!), but not mandatory.\n\n## Use it? Love/hate it?\n\nTweet the author [@dklimkin](http://twitter.com/dklimkin), and check out Dmitry's portfolio: http://dmitry-klimkin.com\n\n## License\n\nScalePicker is released under the MIT license. See [LICENSE](https://raw.githubusercontent.com/kronik/ScalePicker/master/LICENSE) for details.\n","funding_links":[],"categories":["UI","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkronik%2FScalePicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkronik%2FScalePicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkronik%2FScalePicker/lists"}