{"id":19704329,"url":"https://github.com/tinymind/lsmessagehud","last_synced_at":"2025-08-04T10:38:19.843Z","repository":{"id":29370614,"uuid":"32905332","full_name":"tinymind/LSMessageHUD","owner":"tinymind","description":"Easy to use and customizable messages/notifications/toasts HUD for iOS, supports simple strings or attributed strings.","archived":false,"fork":false,"pushed_at":"2015-03-26T12:35:02.000Z","size":364,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T12:16:55.908Z","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/tinymind.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":"2015-03-26T03:22:46.000Z","updated_at":"2016-01-08T01:20:16.000Z","dependencies_parsed_at":"2022-08-31T20:10:18.398Z","dependency_job_id":null,"html_url":"https://github.com/tinymind/LSMessageHUD","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/tinymind%2FLSMessageHUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSMessageHUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSMessageHUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymind%2FLSMessageHUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinymind","download_url":"https://codeload.github.com/tinymind/LSMessageHUD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241019993,"owners_count":19895353,"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-11T21:21:59.260Z","updated_at":"2025-02-27T13:45:06.990Z","avatar_url":"https://github.com/tinymind.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LSMessageHUD\nEasy to use and customizable messages/notifications HUD for iOS, supports simple strings or attributed strings.\n\n## Example\n\n![LSMessageHUD Example1](https://github.com/tinymind/LSMessageHUD/raw/master/Example.gif)  \n\n## Features\n\n- Keyboard height adjust.\n- Portait/Landscape orientation adjust.\n- Easy to custom.\n\n## Installation\n\nLSMessageHUD is available through [CocoaPods](http://cocoapods.org/), add the following line to your Podfile:\n\n```\npod 'LSMessageHUD'\n```\n\n## Requirements\n\nRequires iOS 7.0 and above, ARC.\n\n## Usage\n\n### Simple message\n\n``` objective-c\n\n  #import \"LSMessageHUD.h\"\n\n  - (void)onMessageTapped:(id)sender {\n  \n    //show without title\n    [LSMessageHUD showWithMessage:@\"Hello, LSMessageHUD\"];\n\n    //show with title    \n    [LSMessageHUD showWithMessage:@\"Hello, LSMessageHUD\" title:@\"Test\"];\n  }\n  \n```\n\n### Attributed message\n\n``` objective-c\n\n  #import \"LSMessageHUD.h\"\n\n  - (void)onMessageTapped:(id)sender {\n  \n    NSMutableAttributedString *attrMsg = [[NSMutableAttributedString alloc] initWithString:@\"Do any additional setup after loading the view, typically from a nib.\"];\n    [attrMsg addAttributes:@{NSForegroundColorAttributeName : [UIColor redColor]} range:NSMakeRange(0, 6)];\n    [attrMsg addAttributes:@{NSForegroundColorAttributeName : [UIColor greenColor]} range:NSMakeRange(24, 13)];\n    \n    NSMutableAttributedString *attrTitle = [[NSMutableAttributedString alloc] initWithString:@\"Note\"];\n    [attrTitle addAttributes:@{NSFontAttributeName : [UIFont boldSystemFontOfSize:20.0]} range:NSMakeRange(0, attrTitle.length)];\n\n    [LSMessageHUD showWithAttributedMessage:attrMsg title:nil duration:1.5 canBeDismissed:YES];\n    \n    [LSMessageHUD showWithAttributedMessage:attrMsg title:attrTitle duration:1.5 canBeDismissed:YES];\n  }\n  \n```\n\n## Customizable\n\n``` objective-c\n\n@property (strong, nonatomic) UIFont *defaultTitleFont;              /**\u003c default is systemFont with 16.0 */\n@property (strong, nonatomic) UIFont *defaultMessageFont;            /**\u003c default is systemFont with 14.0 */\n@property (strong, nonatomic) UIColor *defaultTitleTextColor;        /**\u003c default is white color */\n@property (strong, nonatomic) UIColor *defaultMessageTextColor;      /**\u003c default is white color */\n@property (strong, nonatomic) UIColor *backgroundColor;              /**\u003c default is RGBA(0, 0, 0, 0.8) */\n\n@property (assign, nonatomic) UIEdgeInsets messageContentInsets;     /**\u003c default is (10, 10, 10, 10) */\n@property (assign, nonatomic) CGFloat messageCornerRadius;           /**\u003c default is 6.0 */\n\n@property (assign, nonatomic) CGFloat messageViewVerticalOffsetRate; /**\u003c default is 0.5, vertical center */\n@property (assign, nonatomic) NSTimeInterval defaultDuration;        /**\u003c default is 2.0 */\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymind%2Flsmessagehud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinymind%2Flsmessagehud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymind%2Flsmessagehud/lists"}