{"id":18352366,"url":"https://github.com/cleveroad/crrulercontrol","last_synced_at":"2025-04-06T11:32:52.600Z","repository":{"id":56087372,"uuid":"69569732","full_name":"Cleveroad/CRRulerControl","owner":"Cleveroad","description":"Customizable component, created by Cleveroad iOS developers, is aimed at turning a simple ruler into a handy and smart instrument","archived":false,"fork":false,"pushed_at":"2020-12-16T03:26:03.000Z","size":3186,"stargazers_count":113,"open_issues_count":6,"forks_count":26,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T18:36:44.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.cleveroad.com","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/Cleveroad.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-09-29T13:24:02.000Z","updated_at":"2024-12-15T21:49:52.000Z","dependencies_parsed_at":"2022-08-15T12:50:58.033Z","dependency_job_id":null,"html_url":"https://github.com/Cleveroad/CRRulerControl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FCRRulerControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FCRRulerControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FCRRulerControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FCRRulerControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cleveroad","download_url":"https://codeload.github.com/Cleveroad/CRRulerControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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-05T21:35:44.984Z","updated_at":"2025-04-06T11:32:48.960Z","avatar_url":"https://github.com/Cleveroad.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRRulerControl [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) \u003cimg src=\"https://www.cleveroad.com/public/comercial/label-ios.svg\" height=\"20\"\u003e \u003ca href=\"https://www.cleveroad.com/?utm_source=github\u0026utm_medium=label\u0026utm_campaign=contacts\"\u003e\u003cimg src=\"https://www.cleveroad.com/public/comercial/label-cleveroad.svg\" height=\"20\"\u003e\u003c/a\u003e\n\n[![CI Status](http://img.shields.io/travis/Sergey/CRRulerControl.svg?style=flat)](https://travis-ci.org/Sergey/CRRulerControl) [![Version](https://img.shields.io/cocoapods/v/CRRulerControl.svg?style=flat)](http://cocoapods.org/pods/CRRulerControl) [![License](https://img.shields.io/cocoapods/l/CRRulerControl.svg?style=flat)](http://cocoapods.org/pods/CRRulerControl) [![Platform](https://img.shields.io/cocoapods/p/CRRulerControl.svg?style=flat)](http://cocoapods.org/pods/CRRulerControl)\n\n![Header image](/images/header.jpg)\n\n## Meet CRRulerControl - Customizable Control for iOS\n\nCleveroad is happy to present a new library for iOS apps — CRRulerControl. Whether your app is going to operate over graphics or any scalable elements, ruler is crucial to provide users convenience and enhance their experience. Customizable component, created by Cleveroad iOS developers, is aimed at turning a simple ruler into a handy and smart instrument.\n\n![Demo image](/images/demo.gif)\n\n#####Check out the animation of \u003cstrong\u003e\u003ca target=\"_blank\" href=\"https://www.youtube.com/watch?v=PdEucF-YDjo\"\u003eCRRulerControl for iOS on YouTube\u003c/a\u003e\u003c/strong\u003e in HD quality.\n\nIf you are ready to take a fresh look at traditional control elements, start with the Ruler. Integrate your iOS app with CRRulerControl library and try out all the benefits it provides.\n\n\n[![Awesome](/images/logo-footer.png)](https://www.cleveroad.com/?utm_source=github\u0026utm_medium=label\u0026utm_campaign=contacts)\n\u003cbr/\u003e\n\nA CocoaPod that simplifies the process of setting and reading values from the ruler.\n\nCreating control elements is rather a simple task. However, it may take fairly large amount of time. To save this time, Cleveroad has created one of the control elements called CRRulerControl. CRRulerControl is a UIControl that can adjust to any your requirements in just a few seconds.\n\n## Requirements\n* iOS 8 or higher\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nCRRulerControl is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```\npod \"CRRulerControl\"\n```\nand run pod install in terminal.\nUsage\n\n## CRRulerControl\n####You can use storyboard to create a control element. \n\n```c\n//Setting the distance between the minimal marks.\n- @property (nonatomic) IBInspectable CGFloat spacingBetweenMarks; \n\n//Setting ruler width \n- @property (nonatomic) IBInspectable CGFloat rulerWidth; \n\n//Setting the minimum value\n- @property (nonatomic) IBInspectable CGFloat rangeFrom; \n\n//Setting the length of liner\n- @property (nonatomic) IBInspectable CGFloat rangeLength; \n\n//Setting value.\n- @property (nonatomic) IBInspectable CGFloat value; \n\n//Setting image of pointer \n- @property (nonatomic, readonly) UIImageView *pointerImageView; \n\n- @property (nonatomic, readonly) UIScrollView *scrollView; \n\n//Setting with animation or without it. \n- (void)setValue:(CGFloat)value animated:(BOOL)animated; \n\n- (CGRect)frameForPointerImageView; \n\n- (CGPoint)contentOffsetForValue:(CGFloat)value; \n\n//To set the size of the lines\n- (void)setSize:(CGSize)size forMarkType:(CRRulerMarkType)markType; \n\n//To set the color of the lines\n- (void)setColor:(UIColor *)color forMarkType:(CRRulerMarkType)markType; \n\n//To set the text of the lines\n- (void)setTextColor:(UIColor *)textColor forMarkType:(CRRulerMarkType)markType; \n\n//To set the font to the text\n- (void)setFont:(UIFont *)font forMarkType:(CRRulerMarkType)markType; \n\n//To set the frequency of lines appearance\n- (void)setFrequency:(CGFloat)frequency forMarkType:(CRRulerMarkType)markType; \n```\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n\n## Support\n\nIf you have any other questions regarding the use of this library, please contact us for support at info@cleveroad.com (email subject: \"CRRulerControl. Support request.\") \n\n## Author\n\n[Sergey Chuchukalo](Chuchukalo.cr@gmail.com)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Cleveroad Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleveroad%2Fcrrulercontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleveroad%2Fcrrulercontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleveroad%2Fcrrulercontrol/lists"}