{"id":18270745,"url":"https://github.com/edgarschmidt/ESAdjustableLabel-Category","last_synced_at":"2025-04-05T01:30:49.080Z","repository":{"id":56909483,"uuid":"4028727","full_name":"edgarschmidt/ESAdjustableLabel-Category","owner":"edgarschmidt","description":"This category implements some basic methods to modify the dimensions of a given UILabel","archived":false,"fork":false,"pushed_at":"2017-04-18T03:41:41.000Z","size":138,"stargazers_count":74,"open_issues_count":3,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T21:36:57.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgarschmidt.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-15T00:11:10.000Z","updated_at":"2024-12-18T11:57:26.000Z","dependencies_parsed_at":"2022-08-20T19:50:33.065Z","dependency_job_id":null,"html_url":"https://github.com/edgarschmidt/ESAdjustableLabel-Category","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/edgarschmidt%2FESAdjustableLabel-Category","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgarschmidt%2FESAdjustableLabel-Category/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgarschmidt%2FESAdjustableLabel-Category/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgarschmidt%2FESAdjustableLabel-Category/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgarschmidt","download_url":"https://codeload.github.com/edgarschmidt/ESAdjustableLabel-Category/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"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-05T11:38:50.354Z","updated_at":"2025-04-05T01:30:48.708Z","avatar_url":"https://github.com/edgarschmidt.png","language":"Objective-C","readme":"\n#ESAdjustable Label Category\n\nAdjusting the size of a UILabel is a pain in the back. This category provides a couple of simple methods to make this process less painful:\n\n```objc\n// Generic method. If minSize is set to CGSizeZero then\n// it is ignored\n// =====================================================\n- (void)adjustLabelToMaximumSize:(CGSize)maxSize \n                     minimumSize:(CGSize)minSize \n                 minimumFontSize:(int)minFontSize;\n\n// Adjust label using only the maximum size and the \n// font size as constraints\n// =====================================================\n- (void)adjustLabelToMaximumSize:(CGSize)maxSize \n                 minimumFontSize:(int)minFontSize;\n\n// Adjust the size of the label using only the font\n// size as a constraint (the maximum size will be\n// calculated automatically based on the screen size)\n// =====================================================\n- (void)adjustLabelSizeWithMinimumFontSize:(int)minFontSize;\n\n// Adjust label without any constraints (the maximum \n// size will be calculated automatically based on the\n// screen size)\n// =====================================================\n- (void)adjustLabel;\n```\n\nThis repo includes a sample demo that illustrates how to use this category.\n\n## How to use it in your projects\n1. Copy the two category files below into your project\n  * UILabel+ESAdjustableLabel.h\n  * UILabel+ESAdjustableLabel.m\n2. Add the following line of code in the header file of the class where the UILabel you need to modify its size is located:\n\n```objc\n#import \"UILabel+ESAdjustableLabel.h\"\n```\n\nHappy hacking ;)\n\n-Edgar","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgarschmidt%2FESAdjustableLabel-Category","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgarschmidt%2FESAdjustableLabel-Category","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgarschmidt%2FESAdjustableLabel-Category/lists"}