{"id":16860638,"url":"https://github.com/wolfcon/edgeslicker","last_synced_at":"2025-03-18T14:38:54.447Z","repository":{"id":56909849,"uuid":"92917123","full_name":"wolfcon/EdgeSlicker","owner":"wolfcon","description":"Hide tab bar or other similar view on edge","archived":false,"fork":false,"pushed_at":"2019-07-02T03:00:06.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:42:11.901Z","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/wolfcon.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":"2017-05-31T07:21:28.000Z","updated_at":"2019-07-02T03:00:07.000Z","dependencies_parsed_at":"2022-08-20T19:50:20.565Z","dependency_job_id":null,"html_url":"https://github.com/wolfcon/EdgeSlicker","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FEdgeSlicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FEdgeSlicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FEdgeSlicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FEdgeSlicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolfcon","download_url":"https://codeload.github.com/wolfcon/EdgeSlicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244242019,"owners_count":20421797,"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-10-13T14:25:51.361Z","updated_at":"2025-03-18T14:38:54.422Z","avatar_url":"https://github.com/wolfcon.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EdgeSlicker\nHide tab bar or other similar view on edge\n\n## Todo\n1. refactor (less injection)\n2. repair the jumping when drag up and down\n\n## Usage\n\n#### Define a var that used to mark the position for slicker.\n\n```objective-c\n@property (assign, nonatomic) CGPoint currentScrollOffset;\n```\n\n#### ScrollViewDelegate\n\n- scrollViewDidScroll\n\n```objective-c\nif ([scrollView isEqual:\u003c#your scroll view responding#\u003e]) {\n    [\u003c#your Tabbar? or other view#\u003e viewDidRespondAutoHideWhenScrollView:scrollView \n            beginDraggingContentOffset:self.currentScrollOffset];\n}\n```\n\n- scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate\n```objective-c\nif ([scrollView isEqual:\u003c#your scroll view responding#\u003e]) {\n    [\u003c#your Tabbar? or other view#\u003e respondingScrollViewDidEndDragging];\n}\n```\n\n- scrollViewWillBeginDragging:(UIScrollView *)scrollView {\n\n```objective-c\nif ([scrollView isEqual:\u003c#your scroll view responding#\u003e]) {\n    self.currentScrollOffset = scrollView.contentOffset;\n    \n    if (scrollView.contentOffset.y \u003c 0) {\n        self.currentScrollOffset = CGPointZero;\n        return;\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfcon%2Fedgeslicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolfcon%2Fedgeslicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfcon%2Fedgeslicker/lists"}