{"id":21629543,"url":"https://github.com/edufresne/blcaptionbar","last_synced_at":"2025-03-18T21:22:12.371Z","repository":{"id":68948362,"uuid":"77424519","full_name":"edufresne/BLCaptionBar","owner":"edufresne","description":"BLCaptionBar","archived":false,"fork":false,"pushed_at":"2017-01-04T21:47:51.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T16:48:04.788Z","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/edufresne.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,"governance":null}},"created_at":"2016-12-27T03:59:05.000Z","updated_at":"2016-12-27T04:07:28.000Z","dependencies_parsed_at":"2023-06-03T08:30:59.897Z","dependency_job_id":null,"html_url":"https://github.com/edufresne/BLCaptionBar","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/edufresne%2FBLCaptionBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edufresne%2FBLCaptionBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edufresne%2FBLCaptionBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edufresne%2FBLCaptionBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edufresne","download_url":"https://codeload.github.com/edufresne/BLCaptionBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244306452,"owners_count":20431815,"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-25T02:07:59.714Z","updated_at":"2025-03-18T21:22:12.346Z","avatar_url":"https://github.com/edufresne.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BLCaptionBar\nThis is a reusable UITextView subclass for all iOS versions that is inspired by Snapchat's caption bar. The bar can be added to any view and can be shown with a single call. BLCaptionBar works for both portrait and landscape orientations and can be customized just like UITextView such as changing background colors, text colors, opacity, and animation settings. The bar can be vertically dragged and is hidden when no text is inputted.\n\n### Example Usage ###\nBelow is a sample usage inside of your custom View Controller\n* Swift *\n```swift\nvar captionBar : BLCaptionBar!\noverride func viewDidLoad(){\n  super.viewDidLoad()\n  self.view.userInteractionEnabled = true\n  captionBar = BLCaptionBar()\n  //Customization\n  captionBar.animationTime = 0.35\n  captionBar.uiDelegate = self\n  self.addSubview(captionBar)\n}\noverride func touchesEnded(touches: Set\u003cUITouch\u003e, withEvent event: UIEvent?){\n  captionBar.slideUp()\n}\noverride func someOtherMethod(){\n  captionBar.slideDown()\n}\n```\n* Objective C *\n```objc\nBLCaptionBar *captionBar;\n-(void)viewDidLoad{\n  [super viewDidLoad];\n  self.view.userInteractionEnabled = YES;\n  captionBar = [[BLCaptionBar alloc] init];\n  //Customization\n  captionBar.animationTime = 0.35;\n  captionBar.uiDelegate = self;\n  [self addSubview: captionBar];\n}\n-(void)touchesEnded:( NSSet\u003cUITouch*\u003e*)touches withEvent:(UIEvent*)event{\n  [captionBar slideUp];\n}\n-(void)someOtherMethod{\n  [captionBar slideDown];\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedufresne%2Fblcaptionbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedufresne%2Fblcaptionbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedufresne%2Fblcaptionbar/lists"}