{"id":2707,"url":"https://github.com/cemolcay/PullToRefreshCoreText","last_synced_at":"2025-08-03T00:32:24.542Z","repository":{"id":21979853,"uuid":"25304718","full_name":"cemolcay/PullToRefreshCoreText","owner":"cemolcay","description":"PullToRefresh extension for all UIScrollView type classes with animated text drawing style","archived":false,"fork":false,"pushed_at":"2016-11-03T11:28:22.000Z","size":229,"stargazers_count":310,"open_issues_count":5,"forks_count":46,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-29T03:13:44.799Z","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/cemolcay.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-10-16T13:59:03.000Z","updated_at":"2024-07-09T03:08:12.000Z","dependencies_parsed_at":"2022-08-05T15:19:01.324Z","dependency_job_id":null,"html_url":"https://github.com/cemolcay/PullToRefreshCoreText","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemolcay%2FPullToRefreshCoreText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemolcay%2FPullToRefreshCoreText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemolcay%2FPullToRefreshCoreText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemolcay%2FPullToRefreshCoreText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cemolcay","download_url":"https://codeload.github.com/cemolcay/PullToRefreshCoreText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510781,"owners_count":17931761,"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-01-05T20:16:20.707Z","updated_at":"2024-12-06T18:30:43.148Z","avatar_url":"https://github.com/cemolcay.png","language":"Objective-C","funding_links":[],"categories":["UI","ALL","PullToRefresh"],"sub_categories":["Pull to Refresh","Layout","Other free courses"],"readme":"PullToRefreshCoreText\n=====================\n\nPullToRefresh extension for all UIScrollView type classes with animated text drawing style\u003cbr\u003e\n\nDemo\n----\n\n![alt tag](https://raw.githubusercontent.com/cemolcay/PullToRefreshCoreText/master/demo.gif)\n\nInstall\n-------\n\n**Manual**  \nCopy the files in the folder named PullToRefreshCoreText to your project.  \nImport the \"UIScrollView+PullToRefreshCoreText.h\"  \n  \n**Cocoapods**\n\n```\n    source 'https://github.com/CocoaPods/Specs.git'\n    pod 'PullToRefreshCoreText', '~\u003e 0.2'\n``` \n\nUsage\n-----\n\n\t- (void)addPullToRefreshWithPullText:(NSString *)pullText\n\t                       pullTextColor:(UIColor *)pullTextColor\n\t                        pullTextFont:(UIFont *)pullTextFont\n\t                      refreshingText:(NSString *)refreshingText\n\t                 refreshingTextColor:(UIColor *)refreshingTextColor\n\t                  refreshingTextFont:(UIFont *)refreshingTextFont\n\t                              action:(pullToRefreshAction)action;\n\nIt has 2 main texts, pulling and refreshing. \u003cbr\u003e\nInit function has parameters for creating this texts with its strings, text colors and fonts. \u003cbr\u003e \nLast parameter is the block function where loading code goes to. \u003cbr\u003e\n\nAlternatively I added some other init methods if you want to use same texts or fonts etc. \u003cbr\u003e\n\n\t   - (void)addPullToRefreshWithPullText:(NSString *)pullText\n\t                                 action:(pullToRefreshAction)action;\n\t   \n\t   - (void)addPullToRefreshWithPullText:(NSString *)pullText\n\t                         refreshingText:(NSString *)refreshingText\n\t                                 action:(pullToRefreshAction)action;\n\t   \n\t   - (void)addPullToRefreshWithPullText:(NSString *)pullText\n\t                                   font:(UIFont *)font\n\t                                 action:(pullToRefreshAction)action;\n\t   \n\t   \n\t   - (void)addPullToRefreshWithPullText:(NSString *)pullText\n\t                         refreshingText:(NSString *)refreshingText\n\t                                   font:(UIFont *)font\n\t                                 action:(pullToRefreshAction)action;\n\t   \n\t   \n\t   - (void)addPullToRefreshWithPullText:(NSString *)pullText\n\t                          pullTextColor:(UIColor *)pullTextColor\n\t                         refreshingText:(NSString *)refreshingText\n\t                    refreshingTextColor:(UIColor *)refreshingTextColor\n\t                                   font:(UIFont *)font\n\t                                 action:(pullToRefreshAction)action;\n\n\nImplementation\n--------------\n\n    //Create ScrollView\n    self.scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];\n    [self.scrollView setContentSize:CGSizeMake(self.view.frame.size.width, self.scrollView.frame.size.height + 1)];\n    [self.view addSubview:self.scrollView];\n\n    \n    //add pull to refresh\n    __weak typeof(self) weakSelf = self;\n    [self.scrollView addPullToRefreshWithPullText:@\"Pull To Refresh\" pullTextColor:[UIColor blackColor] pullTextFont:DefaultTextFont refreshingText:@\"Refreshing\" refreshingTextColor:[UIColor blueColor] refreshingTextFont:DefaultTextFont action:^{\n        [weakSelf loadItems];\n    }];\n\n\nOne last thing: you should call the `[scrollView finishLoading]` method after the load finishes.\u003cbr\u003e\nOtherwise you stuck in refreshing state always.\n\nCredits\n=======\n\nBlogs and codes I used for creating this\u003cbr\u003e\nhttps://github.com/jrturton/NSString-Glyphs\u003cbr\u003e\nhttp://www.codeproject.com/Articles/109729/Low-level-text-rendering\u003cbr\u003e\nhttp://ronnqvi.st/controlling-animation-timing/\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcemolcay%2FPullToRefreshCoreText","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcemolcay%2FPullToRefreshCoreText","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcemolcay%2FPullToRefreshCoreText/lists"}