{"id":19856969,"url":"https://github.com/johnvuko/jtimagelabel","last_synced_at":"2025-05-02T02:30:28.068Z","repository":{"id":23091574,"uuid":"26445525","full_name":"johnvuko/JTImageLabel","owner":"johnvuko","description":"JTImageLabel keeps a UILabel and a UIImageView side by side on iOS.","archived":false,"fork":false,"pushed_at":"2015-12-03T17:15:49.000Z","size":144,"stargazers_count":79,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-06T21:01:36.695Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnvuko.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":"2014-11-10T16:46:23.000Z","updated_at":"2022-11-06T19:46:46.000Z","dependencies_parsed_at":"2022-08-21T20:10:34.016Z","dependency_job_id":null,"html_url":"https://github.com/johnvuko/JTImageLabel","commit_stats":null,"previous_names":["johnvuko/jtimagelabel"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTImageLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTImageLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTImageLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2FJTImageLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnvuko","download_url":"https://codeload.github.com/johnvuko/JTImageLabel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972409,"owners_count":21673599,"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-12T14:17:05.745Z","updated_at":"2025-05-02T02:30:27.763Z","avatar_url":"https://github.com/johnvuko.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JTImageLabel\n\n[![CI Status](http://img.shields.io/travis/jonathantribouharet/JTImageLabel.svg)](https://travis-ci.org/jonathantribouharet/JTImageLabel)\n![Version](https://img.shields.io/cocoapods/v/JTImageLabel.svg)\n![License](https://img.shields.io/cocoapods/l/JTImageLabel.svg)\n![Platform](https://img.shields.io/cocoapods/p/JTImageLabel.svg)\n\nJTImageLabel is a simple view which contain a `UILabel` and a `UIImageView` which stay side by side, even if you change the alignment of the `UILabel`.\n\n## Installation\n\nWith [CocoaPods](http://cocoapods.org/), add this line to your Podfile.\n\n    pod 'JTImageLabel', '~\u003e 1.0'\n\n## Screenshots\n\n![Example](./Screens/example.png \"Example\")\n\n\n## Usage\n\nIt's very easy to use.\n\n```objective-c\n#import \u003cUIKit/UIKit.h\u003e\n\n#import \"JTImageLabel.h\"\n\n@interface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet JTImageLabel *label;\n\n@end\n```\n\nYou can access directly to the `imageView` and the `textLabel`.\nAlso you can define the space between the two views.\n\n```objective-c\n@implementation ViewController\n\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n\n    self.label.imageView.image = [UIImage imageNamed:@\"icon\"];\n    self.label.textLabel.text = @\"Test\";\n    self.label.textLabel.textAlignment = NSTextAlignmentRight;\n    self.label.space = 10.; // Add a space between the imageView and the textLabel\n}\n```\n\nYou cannot change the `frame` of the `imageView` and the `textLabel`. The `imageView` has the same size as this image and the `textLabel` adapts to its relative content.\n\n\n## Requirements\n\n- iOS 7 or higher\n- Automatic Reference Counting (ARC)\n\n## Author\n\n- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))\n\n## License\n\nJTImageLabel is released under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjtimagelabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnvuko%2Fjtimagelabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fjtimagelabel/lists"}