{"id":18270862,"url":"https://github.com/inamiy/YIPopupTextView","last_synced_at":"2025-04-05T01:30:54.208Z","repository":{"id":2360865,"uuid":"3324496","full_name":"inamiy/YIPopupTextView","owner":"inamiy","description":"facebook's post-like input text view for iOS (Beerware license)","archived":false,"fork":false,"pushed_at":"2016-09-20T11:44:29.000Z","size":614,"stargazers_count":245,"open_issues_count":5,"forks_count":61,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-31T15:19:45.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cocoacontrols.com/platforms/ios/controls/yipopuptextview","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inamiy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-01T12:11:53.000Z","updated_at":"2024-12-18T11:57:27.000Z","dependencies_parsed_at":"2022-08-21T00:01:09.051Z","dependency_job_id":null,"html_url":"https://github.com/inamiy/YIPopupTextView","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYIPopupTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYIPopupTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYIPopupTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYIPopupTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inamiy","download_url":"https://codeload.github.com/inamiy/YIPopupTextView/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:38:54.968Z","updated_at":"2025-04-05T01:30:53.484Z","avatar_url":"https://github.com/inamiy.png","language":"Objective-C","readme":"YIPopupTextView\n===============\n\nfacebook's post-like input text view for iOS.\n(Supported iPad splitted-keyboard in ver 1.1.0)\n\n### iOS7\n\n\u003cimg src=\"https://raw.github.com/inamiy/YIPopupTextView/master/Screenshots/screenshot3.png\" alt=\"ScreenShot\" width=\"225px\" style=\"width:225px;\" /\u003e \u003cimg src=\"https://raw.github.com/inamiy/YIPopupTextView/master/Screenshots/screenshot4.png\" alt=\"ScreenShot\" width=\"300px\" style=\"width:300px;\" /\u003e\n\n### iOS6\n\n\u003cimg src=\"https://raw.github.com/inamiy/YIPopupTextView/master/Screenshots/screenshot1.png\" alt=\"ScreenShot\" width=\"225px\" style=\"width:225px;\" /\u003e \u003cimg src=\"https://raw.github.com/inamiy/YIPopupTextView/master/Screenshots/screenshot2.png\" alt=\"ScreenShot\" width=\"225px\" style=\"width:225px;\" /\u003e\n\nInstall via [CocoaPods](http://cocoapods.org/)\n----------\n\n```\npod 'YIPopupTextView'\n```\n\nHow to use\n----------\n```objc\n// NOTE: maxCount = 0 to hide count\nYIPopupTextView* popupTextView = [[YIPopupTextView alloc] initWithPlaceHolder:@\"input here\" maxCount:1000];\npopupTextView.delegate = self;\npopupTextView.caretShiftGestureEnabled = YES;   // default = NO\npopupTextView.text = self.textView.text;\n//popupTextView.editable = NO;                  // set editable=NO to show without keyboard\n\n//[popupTextView showInView:self.view];\n[popupTextView showInViewController:self]; // recommended, especially for iOS7\n\n//\n// NOTE:\n// You can add your custom-button after calling -showInView:\n// (it's better to add on either superview or superview.superview)\n// https://github.com/inamiy/YIPopupTextView/issues/3\n//\n// [popupTextView.superview addSubview:customButton];\n//\n\n```\n\n### YIPopupTextViewButtonStyle\n\n```objc\ntypedef NS_ENUM(NSInteger, YIPopupTextViewButtonStyle) {\n    YIPopupTextViewButtonStyleNone,\n    YIPopupTextViewButtonStyleRightCancel,          // \"x\" on the upper-right\n    YIPopupTextViewButtonStyleRightDone,            // \"check\" on the upper-right\n    YIPopupTextViewButtonStyleLeftCancelRightDone,\n    YIPopupTextViewButtonStyleRightCancelAndDone,\n    YIPopupTextViewButtonStyleLeftDone\n};\n```\n\nFor `caret-shifting`, it is better to use [YISwipeShiftCaret](https://github.com/inamiy/YISwipeShiftCaret) for all UITextField/UITextViews.\n\nLicense\n-------\n`YIPopupTextView` is available under the [Beerware](http://en.wikipedia.org/wiki/Beerware) license.\n\nIf we meet some day, and you think this stuff is worth it, you can buy me a beer in return.\n\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finamiy%2FYIPopupTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finamiy%2FYIPopupTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finamiy%2FYIPopupTextView/lists"}