{"id":17068950,"url":"https://github.com/kgn/kgdiscreetalertview","last_synced_at":"2025-04-12T18:21:59.653Z","repository":{"id":5232083,"uuid":"6408873","full_name":"kgn/KGDiscreetAlertView","owner":"kgn","description":"An easy drop in control that allows you to display a discrete alert in any view.","archived":false,"fork":false,"pushed_at":"2015-08-30T00:43:58.000Z","size":7462,"stargazers_count":101,"open_issues_count":0,"forks_count":10,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-03-14T19:53:08.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/kgn.png","metadata":{"files":{"readme":"readme.md","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}},"created_at":"2012-10-26T18:55:48.000Z","updated_at":"2023-12-25T22:11:17.000Z","dependencies_parsed_at":"2022-08-24T15:42:27.332Z","dependency_job_id":null,"html_url":"https://github.com/kgn/KGDiscreetAlertView","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/kgn%2FKGDiscreetAlertView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGDiscreetAlertView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGDiscreetAlertView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGDiscreetAlertView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgn","download_url":"https://codeload.github.com/kgn/KGDiscreetAlertView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610708,"owners_count":21132988,"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-14T11:15:42.131Z","updated_at":"2025-04-12T18:21:59.624Z","avatar_url":"https://github.com/kgn.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"`KGDiscreetAlertView` is an easy drop in control that allows you to display a discreet alert in any view.\n\n![](https://raw.github.com/kgn/KGDiscreetAlertView/master/example.gif)\n\nYou supply your own text and `KGDiscreetAlertView` does the rest to properly fit the text in the discreet alert and animate it down from the top of the specified view:\n\n``` obj-c\n[KGDiscreetAlertView showDiscreetAlertWithText:@\"KGDiscreetAlertView, add discreet alerts to any view!\" inView:self.view];\n```\n\nThere are a couple other options but it's purposely designed to be simple and easy to use:\n\n``` obj-c\n#pragma mark - Convenience Class Methods\n\n// Show a discreet alert with the given text in a view,\n// the alert will be automatically dismissed after 3 seconds.\n+ (id)showDiscreetAlertWithText:(NSString *)text inView:(UIView *)view;\n\n// Show a discreet alert with the given text in a view,\n// the alert will be automatically dismissed after the specified delay.\n// If the delay is 0 the alert will be 'sticky' and will not be dismissed until `hide` is called.\n+ (id)showDiscreetAlertWithText:(NSString *)text inView:(UIView *)view delay:(NSTimeInterval)delay;\n\n// Show a discreet alert with the given text in a view, and a max width for the alert.\n// The alert will be automaticly dismissed after the specified delay,\n// if the delay is 0 the alert will be 'sticky' and will not be dismissed until `hide` is called.\n+ (id)showDiscreetAlertWithText:(NSString *)text inView:(UIView *)view maxWidth:(CGFloat)maxWidth delay:(NSTimeInterval)delay;\n\n#pragma mark - Instance Methods\n\n// Show a discreet alert with the given text in a view,\n// the alert will be automatically dismissed after 3 seconds.\n- (void)showWithText:(NSString *)text inView:(UIView *)view;\n\n// Show a discreet alert with the given text in a view,\n// the alert will be automatically dismissed after the specified delay.\n// If the delay is 0 the alert will be 'sticky' and will not be dismissed until `hide` is called.\n- (void)showWithText:(NSString *)text inView:(UIView *)view delay:(NSTimeInterval)delay;\n\n// Show a discreet alert with the given text in a view, and a max width for the alert.\n// The alert will be automatically dismissed after the specified delay,\n// if the delay is 0 the alert will be 'sticky' and will not be dismissed until `hide` is called.\n- (void)showWithText:(NSString *)text inView:(UIView *)view maxWidth:(CGFloat)maxWidth delay:(NSTimeInterval)delay;\n\n// Dismiss the discreet alert.\n- (void)hide;\n```\n\nCheck out the ExampleApp to see it in action!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fkgdiscreetalertview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgn%2Fkgdiscreetalertview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fkgdiscreetalertview/lists"}