{"id":16833549,"url":"https://github.com/ole/obgradientview","last_synced_at":"2025-03-17T04:32:32.574Z","repository":{"id":136294938,"uuid":"619326","full_name":"ole/OBGradientView","owner":"ole","description":"A simple UIView wrapper for CAGradientLayer. For the times when it's more convenient to use a view instead of a CALayer.","archived":false,"fork":false,"pushed_at":"2021-05-03T12:05:45.000Z","size":238,"stargazers_count":112,"open_issues_count":0,"forks_count":23,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-27T18:01:24.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://oleb.net/blog/2010/04/obgradientview-a-simple-uiview-wrapper-for-cagradientlayer/","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/ole.png","metadata":{"files":{"readme":"README.mdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2010-04-20T10:14:56.000Z","updated_at":"2022-06-09T17:00:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8f80db4-fd9f-4017-b427-2ffb5a6b6b61","html_url":"https://github.com/ole/OBGradientView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOBGradientView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOBGradientView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOBGradientView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOBGradientView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ole","download_url":"https://codeload.github.com/ole/OBGradientView/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841898,"owners_count":20356570,"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-10-13T11:54:34.927Z","updated_at":"2025-03-17T04:32:32.257Z","avatar_url":"https://github.com/ole.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OBGradientView\n\nOBGradientView is a simple UIView wrapper for [CAGradientLayer][CAGradientLayerReference]. It is a\nplain UIView whose layer is a CAGradientLayer. It is useful if using a view is more convenient than\nusing a layer, e.g. because you want to use autoresizing masks.\n \nOBGradientView exposes all of the layer's gradient-related properties. The getters and setters just\nforward the calls to the layer so the syntax is just the same as for CAGradientLayer's properties itself.\nSee the [documentation for CAGradientLayer][CAGradientLayerReference] for details.\n \nThe one exception to this is the colors property: in addition to an array of CGColorRefs, it also accepts\nan array of UIColor objects. Likewise, the getter returns an array of UIColors. If you need CGColorRefs,\naccess gradientLayer.colors instead.\n\n![OBGradientViewDemo screenshot][screenshot]\n \n## Credits\n\nWritten by Ole Begemann  \n[http://oleb.net/blog/2010/04/obgradientview-a-simple-uiview-wrapper-for-cagradientlayer/][Blog post]  \nApril, 2010\n\n\n## MIT License\n\nCopyright (c) 2010 Ole Begemann\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\nall copies 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\nTHE SOFTWARE.\n\n[CAGradientLayerReference]: http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CAGradientLayer_class/Reference/Reference.html \"CAGradientLayer Class Reference\"\n[Blog post]: http://oleb.net/blog/2010/04/obgradientview-a-simple-uiview-wrapper-for-cagradientlayer/\n[screenshot]: http://github.com/ole/OBGradientView/raw/master/OBGradientViewDemo-screenshot.png","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fobgradientview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fole%2Fobgradientview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fobgradientview/lists"}