{"id":18271295,"url":"https://github.com/gcamp/GCDiscreetNotificationView","last_synced_at":"2025-04-05T01:31:17.964Z","repository":{"id":48858244,"uuid":"1640718","full_name":"gcamp/GCDiscreetNotificationView","owner":"gcamp","description":"A discreet, non-modal, notification view for iOS.","archived":false,"fork":false,"pushed_at":"2013-12-08T14:27:29.000Z","size":195,"stargazers_count":407,"open_issues_count":3,"forks_count":79,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-30T00:11:03.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"gcamp.ca","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gcamp.png","metadata":{"files":{"readme":"README.textile","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":"2011-04-20T14:19:14.000Z","updated_at":"2025-03-23T19:47:29.000Z","dependencies_parsed_at":"2022-09-03T14:22:19.165Z","dependency_job_id":null,"html_url":"https://github.com/gcamp/GCDiscreetNotificationView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcamp%2FGCDiscreetNotificationView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcamp%2FGCDiscreetNotificationView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcamp%2FGCDiscreetNotificationView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcamp%2FGCDiscreetNotificationView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcamp","download_url":"https://codeload.github.com/gcamp/GCDiscreetNotificationView/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:39:12.297Z","updated_at":"2025-04-05T01:31:12.952Z","avatar_url":"https://github.com/gcamp.png","language":"Objective-C","readme":"h1. GCDiscreetNotificationView\n\nGCDiscreetNotificationView is a discreet, non-modal, notification view for iOS. You can use it to show an activity or state of you app without blocking the user interactions.\n\n!http://i.imgur.com/8vcti5u.png!\n\nGCDiscreetNotificationView features:\n\n* Easy to use : init and show\n* Can show an activity indicator\n* Two presentation mode (top and bottom)\n* All properties (text, activity and presentation mode) can be changed in a animated fashion\n\nh2. Usage\n\n(See the demo project included)\n\nYou simply allocate the notification view with one of the following methods.\n\nThe parameters are the following : \n* _text_ : the text presented on the notification\n* _activity_ : if set to @YES@, the notification with show a activity indicator\n* _aPresentationMode_ : the presentation mode of the notification (top or bottom)\n* _aView_ : the view that will contain the notification. The view should be able to accept subviews (will not work on a @UITableView@ for example)\n\n\u003cpre\u003e\n- (id) initWithText:(NSString *)text inView:(UIView *)aView;\n- (id) initWithText:(NSString *)text showActivity:(BOOL)activity inView:(UIView *)aView;\n- (id) initWithText:(NSString *)text showActivity:(BOOL)activity inPresentationMode:(GCDiscreetNotificationViewPresentationMode) aPresentationMode inView:(UIView *)aView;\n\u003c/pre\u003e\n\nYou show or hide the notification with these methods. The @showAndDismissAutomaticallyAnimated@ will hide your notification automatically after 1 second.\n\n\u003cpre\u003e\n- (void) showAnimated;\n- (void) hideAnimated;\n- (void) hideAnimatedAfter:(NSTimeInterval) timeInterval;\n- (void) show:(BOOL) animated;\n- (void) hide:(BOOL) animated;\n- (void) showAndDismissAutomaticallyAnimated;\n- (void) showAndDismissAfter:(NSTimeInterval) timeInterval;\n\u003c/pre\u003e\n\nYou can change the text of the label of the activity viewing at any moment with these properties.\n\n\u003cpre\u003e\n@property (nonatomic, assign) UIView *view;\n@property (nonatomic, assign) GCDiscreetNotificationViewPresentationMode presentationMode;\n@property (nonatomic, copy) NSString* textLabel;\n@property (nonatomic, assign) BOOL showActivity;\n\u003c/pre\u003e\n\nThese properties can be changed in a animated fashion (except the view).\n\n\u003cpre\u003e\n- (void) setTextLabel:(NSString *) aText animated:(BOOL) animated;\n- (void) setShowActivity:(BOOL) activity animated:(BOOL) animated;\n- (void) setTextLabel:(NSString *)aText andSetShowActivity:(BOOL)activity animated:(BOOL)animated;\n- (void) setPresentationMode:(GCDiscreetNotificationViewPresentationMode) newPresentationMode animated:(BOOL) animated;\n\u003c/pre\u003e\n\nYou can access directly the notification's label and activity indicator. And change some propreties on that label and activity indicator. If you want to change the label's text or hide the indicator, use @textLabel@ or @showActivity@ instead.\n\n\u003cpre\u003e\n@property (nonatomic, retain, readonly) UILabel *label;  \n@property (nonatomic, retain, readonly) UIActivityIndicatorView *activityIndicator;\n\u003c/pre\u003e\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcamp%2FGCDiscreetNotificationView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcamp%2FGCDiscreetNotificationView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcamp%2FGCDiscreetNotificationView/lists"}