{"id":16482777,"url":"https://github.com/shaps80/imessagestylereveal","last_synced_at":"2025-06-28T06:33:34.607Z","repository":{"id":15720400,"uuid":"18458524","full_name":"shaps80/iMessageStyleReveal","owner":"shaps80","description":"Adds iMessage style timestamp support. Written in Swift!","archived":false,"fork":false,"pushed_at":"2019-11-25T13:15:08.000Z","size":795,"stargazers_count":147,"open_issues_count":0,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-13T01:06:37.153Z","etag":null,"topics":["imessage","ios","swift","timestamp","ui","uitableview"],"latest_commit_sha":null,"homepage":"http://shaps.me/blog/imessage-style-reveal/","language":"Swift","has_issues":false,"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/shaps80.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":"2014-04-05T02:42:42.000Z","updated_at":"2024-02-07T23:01:22.000Z","dependencies_parsed_at":"2022-09-19T02:32:55.371Z","dependency_job_id":null,"html_url":"https://github.com/shaps80/iMessageStyleReveal","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/shaps80/iMessageStyleReveal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FiMessageStyleReveal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FiMessageStyleReveal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FiMessageStyleReveal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FiMessageStyleReveal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaps80","download_url":"https://codeload.github.com/shaps80/iMessageStyleReveal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaps80%2FiMessageStyleReveal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259559708,"owners_count":22876501,"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":["imessage","ios","swift","timestamp","ui","uitableview"],"created_at":"2024-10-11T13:12:01.184Z","updated_at":"2025-06-13T01:06:38.699Z","avatar_url":"https://github.com/shaps80.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Purpose\n--------------\n\nI recently needed to build the iMessage style pull-to-reveal timestamps feature for a personal project and decided to open source the implementation.\n\n\nInstallation\n--------------\n\nSimply add the following to your Podfile:\n\nLatest release uses Swift 5:\n`pod RevealableCell`\n\nIf you need Swift 2.2:\n`pod 'RevealableCell', '1.1'`\n\nIf you need Swift 3.0:\n`pod 'RevealableCell', '2.0'`\n\n---\n\nThen add the following import at the top of your source file(s):\n\nSwift\n`import RevealableCell`\nObj-C\n`@import RevealableCell`\n\n\nUsage\n-------\n\nIn order to use RevealableCell in your application, follow the steps below:\n\n1. Your cell must be a subclass of RevealableTableViewCell\n2. You must register a nib or a RevealableView subclass using:\n\n   `tableView.registerNib(nib, forRevealableViewReuseIdentifier: \"identifier\")` or\n   `tableView.registerClass(revealableViewClass, forRevealableViewReuseIdentifier: \"identifier\")`\n   \n3. In `cellForRowAtIndexPath` you can dequeue and configure an instance using:\n\n   ```swift\n   if let view = tableView.dequeueReusableRevealableViewWithIdentifier(\"identifier\") as? MyRevealableView {\n     view.titleLabel.text = \"\" // configure\n     cell.setRevealableView(view, style: .Slide, direction: .Left)\n   }\n   ```\n    \nThis new implementation, provides reusable views of the same type as well as allowing you to have\ndifferent styles or directions for individual cells. \n    \nRun this project, to see a demo similar to the iMessage app on your iOS device.\n\nAdditional Info\n-------\n\nRevealableViews also support AutoLayout now, so if you've setup your constraints correctly, the views will auto-size their widths (per cell) for you. However, you can also specify a fixed width for each cell using\n\n`cell.revealableView.width = 100`\n\nNote: The height will always be the same as the cell and the position is based on the `.style` of the `RevealableView`\n\nFeel free to use in any way you see fit. Please try and reference me somewhere in your app if you use this in a production app and maybe even tell me about it via Twitter [@shaps](http://twitter.com/shaps) ;)\n\n\n![Screenshot](http://shaps.me/assets/img/blog/iMessageStyleReveal.jpg)\n\nSupported OS \u0026 SDK Versions\n-----------------------------\n\n* Supported build target - iOS 8.0\n* Earliest supported deployment target - iOS 8.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaps80%2Fimessagestylereveal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaps80%2Fimessagestylereveal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaps80%2Fimessagestylereveal/lists"}