{"id":1231,"url":"https://github.com/justeat/JustPeek","last_synced_at":"2025-07-30T20:32:59.613Z","repository":{"id":56917016,"uuid":"65025330","full_name":"justeat/JustPeek","owner":"justeat","description":"JustPeek is an iOS Library that adds support for Force Touch-like Peek and Pop interactions on devices that do not natively support this kind of interaction.","archived":true,"fork":false,"pushed_at":"2017-12-12T13:57:12.000Z","size":1452,"stargazers_count":68,"open_issues_count":0,"forks_count":4,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-11-11T03:17:40.778Z","etag":null,"topics":["force-touch","peek","pop-interactions"],"latest_commit_sha":null,"homepage":"http://www.just-eat.com/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justeat.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":"2016-08-05T14:33:48.000Z","updated_at":"2024-07-11T15:52:32.000Z","dependencies_parsed_at":"2022-08-21T03:50:47.303Z","dependency_job_id":null,"html_url":"https://github.com/justeat/JustPeek","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justeat%2FJustPeek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justeat%2FJustPeek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justeat%2FJustPeek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justeat%2FJustPeek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justeat","download_url":"https://codeload.github.com/justeat/JustPeek/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228187602,"owners_count":17882334,"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":["force-touch","peek","pop-interactions"],"created_at":"2024-01-05T20:15:41.805Z","updated_at":"2024-12-04T20:31:09.132Z","avatar_url":"https://github.com/justeat.png","language":"Shell","funding_links":[],"categories":["Hardware"],"sub_categories":["Force Touch","Other free courses"],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"just_peek_banner.png?raw=true\" alt=\"JustPeek Banner\" /\u003e\u003c/p\u003e\n\n# JustPeek\n\n[![Version](https://img.shields.io/cocoapods/v/JustPeek.svg?style=flat)](http://cocoapods.org/pods/JustPeek)\n[![License](https://img.shields.io/cocoapods/l/JustPeek.svg?style=flat)](http://cocoapods.org/pods/JustPeek)\n[![Platform](https://img.shields.io/cocoapods/p/JustPeek.svg?style=flat)](http://cocoapods.org/pods/JustPeek)\n\n### Warning: This library is not supported anymore by Just Eat.\n\nJustPeek is an iOS Library that adds support for Force Touch-like Peek and Pop interactions on devices that do not natively support this kind of interaction. Under the hood it uses the native implementation if available, otherwise a custom implementation based on `UILongPressGestureRecognizer`.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/justeat/JustPeek/blob/master/just_peek_demo.gif?raw=true\" alt=\"JustPeek Demo\"  width=\"320px\" height=\"568px\" /\u003e\u003c/p\u003e\n\n## Usage\n\n**Swift 3.2 = Version 0.3.1**\n\n**Swift 4 = Version 1.0.0**\n\n\n```swift\n// In a UITableViewController\n\nimport JustPeek\n\n...\n\nvar peekController: PeekController?\n\n// MARK: View Lifecycle\n\noverride func viewDidLoad() {\n    super.viewDidLoad()\n    peekController = PeekController()\n    peekController?.register(viewController: self, forPeekingWithDelegate: self, sourceView: tableView)\n}\n\n// MARK: PeekingDelegate\n\nfunc peekContext(_ context: PeekContext, viewControllerForPeekingAt location: CGPoint) -\u003e UIViewController? {\n    let viewController = storyboard?.instantiateViewController(withIdentifier: \"ViewController\")\n    if let viewController = viewController, let indexPath = tableView.indexPathForRow(at: location) {\n        configureViewController(viewController, withItemAtIndexPath: indexPath)\n        if let cell = tableView.cellForRow(at: indexPath) {\n            context.sourceRect = cell.frame\n        }\n        return viewController\n    }\n    return nil\n}\n\nfunc peekContext(_ context: PeekContext, commit viewController: UIViewController) {\n    show(viewController, sender: self)\n}\n```\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nJustPeek is available through [CocoaPods](http://cocoapods.org).\nTo install it, simply add the following line to your Podfile:\n\n```ruby\npod \"JustPeek\"\n```\n\n## License\n\nJustPeek is available under the Apache License, Version 2.0. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusteat%2FJustPeek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjusteat%2FJustPeek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusteat%2FJustPeek/lists"}